colm.sh
来自「Shall高级编程」· Shell 代码 · 共 15 行
SH
15 行
#!/bin/bash# This is a slight modification of the example file in the "column" man page.(printf "PERMISSIONS LINKS OWNER GROUP SIZE MONTH DAY HH:MM PROG-NAME\n" \; ls -l | sed 1d) | column -t# The "sed 1d" in the pipe deletes the first line of output,#+ which would be "total N",#+ where "N" is the total number of files found by "ls -l".# The -t option to "column" pretty-prints a table.exit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?