Quote:
Originally Posted by Vrajgh
You'll need to use the "find" command with -name to identify files by pattern and then the "-exec" to apply certain commands to each found file.
|
I was experimenting with "find . -name xyz" but thought there must be a simpler way. Glad I'm not going mad.
I had been using that other great Linux command -- rsync -- to synchronise several disks but it's additive; delete a file somewhere and you get it straight back on the next rsync run. I wanted a simple way to prune junk selectively.
Many thanks.
EDIT: Cross posts -- thank you as well Transformania !
EDIT again: in fact I used
Code:
find . -name *.~lock* -exec rm -i {} \;
and it's interactive.
