jump to navigation

Command line Perl for sysadmins: 03.24.06

Posted by wimac in programming.

Using perl -e allows you to specify a script right on the command line. It’s a powerful, underused feature even for people who use Perl regularly. Perl’s powerful command line options make it a more flexible replacement for sed, awk, and even vi. Combine perl -e with the command line editing capability of modern shells and you can, write, test, and debug in record time. The -p option tells Perl to act as a stream editor similar to sed and awk. Perl with the -e and -p options can make a nice addition to your Unix toolbox. Perl has a more familiar syntax than sed and awk for C programmers, and much more powerful

   read more:



No comments yet — be the first.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: