[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Omaha.pm] xargs is kinda handy!
The "W" and "w" options are also useful when just trying to clean up code:
ls *pl | xargs -n 1 perl -wc
-c check syntax only (runs BEGIN and CHECK blocks)
-w enable many useful warnings (RECOMMENDED)
-W enable all warnings
Although if you have a ton o' scripts it might be useful to pipe it
into a file to look at when convenient. Keep the tips coming! They're
great.
On Fri, 15 Jul 2005, Jay Hannah wrote:
xargs is kinda handy!
ls *pm | xargs -n 1 perl -c
Common.pm syntax OK
RR2_1.pm syntax OK
SG5_1.pm syntax OK
SG5_2.pm syntax OK
SG5.pm syntax OK
SG6_1_1.pm syntax OK
SG6_1_2.pm syntax OK
SG6_1_3.pm syntax OK
SG6_1_4.pm syntax OK
SG6_1_5.pm syntax OK
SG6_1_6.pm syntax OK
SG6_1_7.pm syntax OK
SG6_1.pm syntax OK
SG6_2_1.pm syntax OK
SG6_2.pm syntax OK
SG6.pm syntax OK
SG.pm syntax OK
SI1.pm syntax OK
SI.pm syntax OK
Saved me from having to spend 2 minutes writing a Perl script there.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Joe Ducharme jduche@creighton.edu
"Time flies like an arrow. Fruit flies like a banana."
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=