[nylug-talk] need sed help
jh
jhlists at hirschman.net
Tue Apr 3 12:09:42 EDT 2007
I'm trying to use sed to delete all the whitespace, up to the first
non-white character, on the first line of a file, and I can't make it
work. Can someone show me what will work?
Tried this:
sed -e 's/[\t]//1' problem.txt > out.txt
sed -e 's/[\020]*//1' problem.txt > out.txt
sed -e 's/[:space:]*//1' problem.txt > out.txt
No dice. This is on an MS-DOS formatted text file...
Thanks~
jh
More information about the nylug-talk
mailing list