文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>ls命令的显示格式

ls命令的显示格式

时间:2009-08-21  来源:dolinux

ls命令显示的格式是一个文件占一行。虽然我们看到的结果是显示结果他是好几个文件并列在同一行。
根据下面这个也可以看到:

along@along-laptop:~/code/shell$ ls
awk cut grep sed shell sort system_status test tr
along@along-laptop:~/code/shell$ ls > file
along@along-laptop:~/code/shell$ cat file
awk
cut
file
grep
sed
shell
sort
system_status
test
tr

along@along-laptop:~/code/shell$ awk 'BEGIN{"ls"|getline d;print d}'
awk

getline是每次从当前输入读入一行。
相关阅读 更多 +
排行榜 更多 +
辣了么卷饼传奇最新版

辣了么卷饼传奇最新版

模拟经营 下载
尸潮塔防最新版

尸潮塔防最新版

策略塔防 下载
火柴人帝国无限安卓版

火柴人帝国无限安卓版

策略塔防 下载