in reply to Command line argument
my $foo_arg = $ARGV[0]; # or just shift(); unless ($foo_arg) { print "Foo arg is missing! Please enter:\n"; $foo_arg = <STDIN>; chomp($foo_arg); die "Alright, i'm just quitting this one!" unless $foo_arg; }
$"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+) +-.*)$/; $_=["ps -e -o pid | "," $2 | "," -v "," "];`@$_`?{print"+ $1"}:{print" +- $1"}&&`rm $1`; print$\;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Command line argument
by Anonymous Monk on Jun 03, 2002 at 13:40 UTC |