Sed: Difference between revisions

From DWIKI
mNo edit summary
Line 15: Line 15:
try tr instead:
try tr instead:
  tr -d '\n' < file
  tr -d '\n' < file
==Edit in-place==
sed -i

Revision as of 15:41, 18 September 2023

Stream Editor

Links

Tutorials


FAQ

match whitespace

\s

replace newline

try tr instead:

tr -d '\n' < file


Edit in-place

sed -i