Bourne .sh ?

Randal L. Schwartz merlyn at
Fri Jul 2 14:01:23 UTC 2010

>>>>> "Aiza" == Aiza  <aiza21 at> writes:

Aiza> Wow do I feel stupid. You saw through my question to the underlying problem
Aiza> causing the need to strip off that stuff. I just changed the command from ls
Aiza> -l to ls -1 and got what I wanted in the first place.

I'm surprised how often -1 is used when not needed.  ls is smart, and
automatically defaults to -1 if the output isn't a terminal.  Consider
the difference between:

    $ ls


    $ ls | cat

Back in the day, before the boys at Berkeley added multicolumn output,
there was a concern that changing the format of `ls` would break a lot
of scripts, so they were careful to do it in a backward-compatible

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at> <URL:>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See for Smalltalk and Seaside discussion

More information about the freebsd-questions mailing list