:: Re: [DNG] Coreutils 8.25 ls output
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Arnt Gulbrandsen
Ημερομηνία:  
Προς: dng
Αντικείμενο: Re: [DNG] Coreutils 8.25 ls output
Mitt Green writes:
> This lad, Pádraig, says, that it happens only
> when outputting to terminals. I wonder,
> where else you can output ls.


Pipes and files. This outputs to a pipe:

ls | grep X

This outputs to a slightly different pipe:

for a in $(ls) ...

This outputs to a file:

ls > /tmp/foo

Arnt