[ale] simple piping

Jerald Sheets jsheets at yahoo.com
Fri Mar 24 15:23:08 EST 2006


If I appropriately understand your request, you're running ls in a  
directory, and want to grep through the results for a string?

In that instance, cat is unnecessary.


ls /etc |grep foo   or ls -al /etc |grep foo


Direct concatenation to your desired grep is the best policy.


Jerald M. Sheets jr.
Sr. UNIX Systems Administrator
The Weather Channel Interactive
404.293.8762



On Mar 24, 2006, at 3:05 PM, Emil Man wrote:

> having an issue with simple piping here.. hehe.. looked all arround  
> google, I cannot find the answer :(
>
> Could someone tell me how to pipe the output of an ls command into  
> cat, and then grep the results?
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale




More information about the Ale mailing list