basic command pipe question

Kanwar Ranbir Sandhu m3freak at rogers.com
Sun Jun 18 22:06:02 UTC 2006


On Sun, 2006-18-06 at 14:14 -0700, Don Russell wrote:
> So far, I have
>     ls | grep -iE \\.zip$

You can pipe that to xargs:

ls | grep -iE \\.zip$

Or, you could use find, and then use the -exec option to rm the files.
You can also use find, and pipe the results to xargs, just like above.

HTH,

Ranbir

-- 
Kanwar Ranbir Sandhu
Linux 2.6.16-1.2111_FC4 i686 GNU/Linux 
18:03:59 up 11:33, 3 users, load average: 0.08, 0.25, 0.25 





More information about the fedora-list mailing list