smarty的变量调节器就是linux的管道

管道:前者的输出是后者的输入

{$name|upper}   通过调节器使得名字变为大写输出

{$name|lower}

linux的管道:

ls –al  |  wc  //查看当前目录下一共的文件数目

递归使用管道

ls  -al |  grep  shuhua  | wc   //查看当前目录下shuhua主人拥有多少文件  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-04-08
  • 2021-05-02
  • 2021-09-23
  • 2021-06-13
  • 2021-12-05
猜你喜欢
  • 2021-12-26
  • 2021-10-01
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2021-12-16
相关资源
相似解决方案