Difference between revisions of "Grep"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "``` cat file | grep -v "^#\|^$" ```")
 
Line 1: Line 1:
 
```
 
```
 
cat file | grep -v "^#\|^$"
 
cat file | grep -v "^#\|^$"
 +
 +
grep -rl $oldstring /path/to/folder | xargs sed -i s@$oldstring@$newstring@g
 
```
 
```

Revision as of 16:33, 15 August 2022

cat file | grep -v "^#\|^$"

grep -rl $oldstring /path/to/folder | xargs sed -i s@$oldstring@$newstring@g