mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
commit
f51d57499d
1 changed files with 2 additions and 2 deletions
|
@ -10,5 +10,5 @@ echo 'It is daytime' | sed 's/day/night/g'
|
||||||
# To remove leading spaces
|
# To remove leading spaces
|
||||||
sed -i -r 's/^\s+//g' file.txt
|
sed -i -r 's/^\s+//g' file.txt
|
||||||
|
|
||||||
# To remove empty lines
|
# Remove empty lines and print results to stdout:
|
||||||
cat file.txt | sed '/^$/d'
|
sed '/^$/d' file.txt
|
||||||
|
|
Loading…
Reference in a new issue