|
Home > Archive > Unix questions > November 2004 > The 'ls' command
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| ladygrinningsoul 2004-11-30, 7:43 pm |
|
When I do an `/bin/ls dir` I get a one-line output: file1 file2 file3
However, when I do `/bin/ls dir > redirect.out` and look at redirect.out,
I see a multi-line output:
file1
file2
file3
Where are the newlines coming from?
| |
| Floyd L. Davidson 2004-11-30, 7:43 pm |
| "ladygrinningsoul" <ladygrinningsoul@stationfour.mars> wrote:
>When I do an `/bin/ls dir` I get a one-line output: file1 file2 file3
>
>However, when I do `/bin/ls dir > redirect.out` and look at redirect.out,
>I see a multi-line output:
>
>file1
>file2
>file3
>
>Where are the newlines coming from?
man ls, it explains that in detail.
--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
|
|
|
|
|