Merge pull request #82 from adelviscio/patch-7

Removed cat
This commit is contained in:
Chris Lane 2013-09-07 10:14:27 -07:00
commit f51d57499d

View file

@ -10,5 +10,5 @@ echo 'It is daytime' | sed 's/day/night/g'
# To remove leading spaces
sed -i -r 's/^\s+//g' file.txt
# To remove empty lines
cat file.txt | sed '/^$/d'
# Remove empty lines and print results to stdout:
sed '/^$/d' file.txt