Skip to contentSkip to conversation

'sed' syntax ...

DISCUSSION Jamie Risk 2 participants 2 messages Sep 23, 2003

lore
Share & tools
lore

Jamie Risk

author
#0 lore raw

I can't figure out form sed's "info" or "man" pages how to make the facsmilie of the following work;

sed s/ +$// source.txt

I hope it's obvious that I'm trying to strip trailing white space from the file "source.txt".

I can do this in TCL/perl and I know how to make a script file for sed work too, but I can never readily remember how to get the command line syntax of sed straight.

- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
	Hello Jamie ,  Try "sed -e'...'"
Quoted 22 lines · Jamie Risk

I can't figure out form sed's "info" or "man" pages how to make the facsmilie of the following work;

sed s/ +$// source.txt

I hope it's obvious that I'm trying to strip trailing white space from the file "source.txt".

I can do this in TCL/perl and I know how to make a script file for sed work too, but I can never readily remember how to get the command line syntax of sed straight.

- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Signature · 10 lines
       +------------------------------------------------------------------+
       | James   W.   Laferriere | System    Techniques | Give me VMS     |
       | Network        Engineer |     P.O. Box 854     |  Give me Linux  |
       | [email protected] | Coudersport PA 16915 |   only  on  AXP |
       +------------------------------------------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs