Made trivial changes to some of the cheatsheets to make them play more nicely with colorized output.

This commit is contained in:
Chris Lane
2013-08-23 19:00:37 -04:00
parent b2159662f3
commit bbbe9193e0
4 changed files with 23 additions and 24 deletions

View File

@ -1,8 +1,8 @@
To replace all occurrences of "day" with "night" and write to stdout:
# To replace all occurrences of "day" with "night" and write to stdout:
sed 's/day/night/g' file.txt
To replace all occurrences of "day" with "night" within file.txt:
# To replace all occurrences of "day" with "night" within file.txt:
sed -i 's/day/night/g' file.txt
To replace all occurrences of "day" with "night" on stdin:
# To replace all occurrences of "day" with "night" on stdin:
echo 'It is daytime' | sed 's/day/night/g'