On 08/23/2006 04:43 PM, [EMAIL PROTECTED] wrote:
Hi all,I found the following sed one-liner trick that strips out the spaces that I run as follows: sed 's/^[ \t]*//;s/[ \t]*$//' /tmp/file.txt > /tmp/filea.txt [...]
It's pretty much exactly the same except for the "-pe": perl -pe 's/^[ \t]*//; s/[ \t]*$//' /tmp/file.txt > /tmp/filea.txt -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>