diff options
author | Gregory S. Kielian <gregory.kielian@gmail.com> | 2014-09-27 12:12:56 -0700 |
---|---|---|
committer | Gregory S. Kielian <gregory.kielian@gmail.com> | 2014-09-27 12:12:56 -0700 |
commit | d22d591e3e2120dd1bed70cd8093569c8b7101c2 (patch) | |
tree | dd59d4fe991f654722740cb6a7dcdb45bb9cd183 | |
parent | e9c21740df4c93ee4575eca41b0028fa2d90ce1b (diff) |
amended sed and bash descriptions
-rw-r--r-- | bash.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash.html.markdown b/bash.html.markdown index fd347488..160fe8f2 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -200,8 +200,8 @@ sort file.txt uniq -d file.txt # prints only the first column before the ',' character cut -d ',' -f 1 file.txt -# replaces every occurance of 'apples' with 'oranges' in file.txt +# replaces every occurrence of 'apples' with 'oranges' in file.txt sed -i 's/apples/oranges/g' file.txt -# prints the number of lines with the string "foo" in file.txt +# prints the number of lines containing the string "foo" in file.txt grep -c "foo" file.txt ``` |