dotplan

troubleshooting & performance analysis

Commnd line options in perl

TAGS: None

# Usage ./this_script-f /tmp/somefile.out -l 21,22,23,24

use Getopt::Std;

#Required if using strict.
our($opt_f,$opt_l);

getopt(‘fl’);

my $inputfile=$opt_f;

my @list=split /,/,$opt_l;

Editing long lines in vi

TAGS: None

<pre>
:set nowrap
</pre>

That’s it.

Blogged with the Flock Browser

© 2009 dotplan. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.