'sed' syntax ...
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
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.txtI 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