Debian Codegraph @

colm.sh

raw symbols SCIP
1 #!/bin/bash
2 # colms.sh
3 # A minor modification of the example file in the "column" man page.
4
5
6 (printf "PERMISSIONS LINKS OWNER GROUP SIZE MONTH DAY HH:MM PROG-NAME\n" \
7 ; ls -l | sed 1d) | column -t
8 # ^^^^^^ ^^
9
10 # The "sed 1d" in the pipe deletes the first line of output,
11 #+ which would be "total N",
12 #+ where "N" is the total number of files found by "ls -l".
13
14 # The -t option to "column" pretty-prints a table.
15
16 exit 0