Perl: usage on command line

perl -i -n -e ‘print $_ unless /^perl DST/;’ `ls -al daily*script* |awk ‘{print $9}’`

if you don’t understand what i am doing, you can just get it from http://www.perl.com/pub/a/2004/08/09/commandline.html?page=2
Advertisements

About Pang

Oracle DBA working in database, fusion middleware and identity management and cloud.
This entry was posted in Perl. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s