in reply to Removing files listed in another file
This will repeatedly try to remove the packlist file, hence the error messages.$ perl -ne '`rm $ARGV $_`' <packlist_file>
The following trick saves strokes over the original one-liner, and doesn't produce extra error messages. Of course, if you cannot remove a file, it still gives an error message. One can see this as a feature! ;-)
Note the .. in void context.$ perl -nle '!`rm $ARGV`..`rm $_`' <packlist_file>
-- Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Removing files listed in another file
by hasant (Initiate) on Jul 01, 2001 at 22:18 UTC | |
by Abigail (Deacon) on Jul 02, 2001 at 20:38 UTC |