'rm' Can not delete files
Randal L. Schwartz
merlyn at stonehenge.com
Tue Feb 7 23:04:02 UTC 2012
>>>>> "Matthew" == Matthew Seaman <m.seaman at infracaninophile.co.uk> writes:
Matthew> As you have discovered, it is very easy to overload the argument list.
Matthew> There are many ways around this, but one of the best ones is to use
Matthew> xargs(1). eg:
Matthew> % ls -1 | xargs rm
No need for the -1 there. Whenever ls is not going to the terminal, it
defaults to classic -1 behavior.
Compare:
% ls
with
% ls | cat
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
More information about the freebsd-questions
mailing list