[colug-432] scripting question
Johnathon Scott
js573712 at ohio.edu
Sat May 7 22:31:06 EDT 2016
Hi all,
I am having difficulty understanding how to pass values to rm. I want
to delete files that match a specific criterion. I recently acquired an
os x machine and iTunes has doubled a significant portion of my
library. But fortunately, the duplicates are easy to identify, they all
look like "foo 2.(mp3|m4a)".
What I have right now is "ls -R | grep "\ 2\.mp3" | rm -v".
Thank you for your time,
Johnathon Scott
--
Personal Site: https://www.pergraphicum.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
Url : http://lists.colug.net/pipermail/colug-432/attachments/20160507/39c3103c/attachment.bin
More information about the colug-432
mailing list