mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 12:30:48 +02:00
amended grep description
This commit is contained in:
@@ -202,6 +202,6 @@ uniq -d file.txt
|
||||
cut -d ',' -f 1 file.txt
|
||||
# replaces every occurance of 'apples' with 'oranges' in file.txt
|
||||
sed -i 's/apples/oranges/g' file.txt
|
||||
# prints the number of occurances of "foo" in file.txt
|
||||
# prints the number of lines with the string "foo" in file.txt
|
||||
grep -c "foo" file.txt
|
||||
```
|
||||
|
Reference in New Issue
Block a user