mirror of
https://github.com/cheat/cheat.git
synced 2024-11-23 22:41:35 +01:00
Update sed
This commit is contained in:
parent
28478ff257
commit
75fab5231f
@ -12,3 +12,6 @@ sed -i -r 's/^\s+//g' file.txt
|
||||
|
||||
# Remove empty lines and print results to stdout:
|
||||
sed '/^$/d' file.txt
|
||||
|
||||
# replace newlines in multiple lines
|
||||
sed ':a;N;$!ba;s/\n//g' file.txt
|
||||
|
Loading…
Reference in New Issue
Block a user