| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # colms.sh |
| 3 | # A minor modification of the example file in the "column" man page. |
| 4 | |
| 5 | |
| 6 | (printfscip-shell system . . printf. "PERMISSIONS LINKS OWNER GROUP SIZE MONTH DAY HH:MM PROG-NAME\n" \ |
| 7 | ; lsscip-shell system . . ls. -l | sedscip-shell system . . sed. 1d) | columnscip-shell system . . 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 |