1
0
mirror of https://github.com/cheat/cheat.git synced 2025-06-02 05:08:37 +02:00

Merge pull request from carlosp420/master

cheat sed, remove leading spaces with regex
This commit is contained in:
Chris Lane 2013-08-26 16:06:22 -07:00
commit eff1b8136c

@ -6,3 +6,6 @@ sed -i 's/day/night/g' file.txt
# To replace all occurrences of "day" with "night" on stdin:
echo 'It is daytime' | sed 's/day/night/g'
# To remove leading spaces
sed -i -r 's/^\s+//g' file.txt