mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-22 20:54:19 +00:00
Update README.md
This commit is contained in:
parent
c379605b6f
commit
45500b83d4
1 changed files with 4 additions and 12 deletions
16
README.md
16
README.md
|
@ -9,19 +9,11 @@ In case you would like to check up and like my stupid questions on Stackoverflow
|
||||||
http://stackoverflow.com/users/4290753/once
|
http://stackoverflow.com/users/4290753/once
|
||||||
|
|
||||||
|
|
||||||
Handy Bash 'oneliner' commands for tsv file editing
|
##Handy Bash 'oneliner' commands for tsv file editing
|
||||||
|
|
||||||
|
##Grep
|
||||||
##Symbol for search:
|
extract text bewteen words (e.g. w1,w2)
|
||||||
>> section
|
grep -o -P '(?<=w1).*(?=w2)'
|
||||||
>function
|
|
||||||
$bash code
|
|
||||||
//comment
|
|
||||||
|
|
||||||
|
|
||||||
>> Grep
|
|
||||||
> extract text bewteen words (e.g. w1,w2)
|
|
||||||
$ grep -o -P '(?<=w1).*(?=w2)'
|
|
||||||
|
|
||||||
>grep lines without word (e.g. bbo)
|
>grep lines without word (e.g. bbo)
|
||||||
$ grep -v bbo
|
$ grep -v bbo
|
||||||
|
|
Loading…
Reference in a new issue