mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
amended sed and bash descriptions
This commit is contained in:
parent
e9c21740df
commit
d22d591e3e
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user