Sed: Difference between revisions

From DWIKI
(Created page with "'''S'''tream '''E'''ditor =Links= =Tutorials= *[http://www.grymoire.com/Unix/Sed.html Sed - An Introduction and Tutorial by Bruce Barnett]")
 
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
=Tutorials=
=Tutorials=
*[http://www.grymoire.com/Unix/Sed.html Sed - An Introduction and Tutorial by Bruce Barnett]
*[http://www.grymoire.com/Unix/Sed.html Sed - An Introduction and Tutorial by Bruce Barnett]
=FAQ=
==errror messages==
===sed: -e expression #1, char 32: unknown command: `\'===
try
's/...
instead of
'/...
==match whitespace==
\s
==replace newline==
try tr instead:
tr -d '\n' < file
==Edit in-place==
sed -i

Latest revision as of 16:44, 25 April 2024

Stream Editor

Links

Tutorials


FAQ

errror messages

sed: -e expression #1, char 32: unknown command: `\'

try

's/...

instead of

'/...


match whitespace

\s

replace newline

try tr instead:

tr -d '\n' < file


Edit in-place

sed -i