ls and rm together
is there any way to use ls and rm together? maybe a pipeline?
i'm working on a vfat mounted drive and i want to remove all JPEG images and some OSX file from every directory.. Code:
./base Code:
./base |
This comes up all the time. Try "find" instead with either "exec or "xargs".
The manpage for find even has an example to do almost what you asked for. |
thanks! i used 'find -name ".*DS_Store" -exec rm {} \;' and *.jpg and it worked great.
|
All times are GMT -5. The time now is 10:55 AM. |