[Novalug] Fill in the blanks?
Michael Henry
lug-user@drmikehenry.com
Sat Mar 17 06:42:22 EDT 2012
On 03/16/2012 07:29 AM, William Sutton wrote:
> Chiming in later, but the ls -1 part is probably unnecessary.
One small note: if you do use the ``ls`` solution, the ``-1``
flag is not necessary, since the default multi-column output of
``ls`` changes to single-column when the output is not a
terminal.
For example, compare:
ls /bin
with:
ls /bin | cat
>From the info page[1]:
"""
`-1'
`--format=single-column'
List one file per line. This is the default for `ls' when standard
output is not a terminal.
"""
Michael Henry
[1]:
http://www.fifi.org/cgi-bin/info2www?(fileutils)General+output+formatting
More information about the Novalug
mailing list