the -p wraps a while loop reading from standard in with a print $_ at the bottom of whatever you put in -e.perl -p -e 's/^\s+//' < file1 > file2
in other words
while(<>) { # whatever is in -e print $_; }
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
In reply to Re: strip white space one-liner
by maverick
in thread strip white space one-liner
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |