티스토리 뷰

728x90
grep -v 'exclude_word' file
egrep -v '(main|master)' file
 

https://stackoverflow.com/questions/4538253/how-can-i-exclude-one-word-with-grep

 

How can I exclude one word with grep?

I need something like: grep ^"unwanted_word"XXXXXXXX

stackoverflow.com

https://www.warp.dev/terminus/grep-exclude

 

How To Exclude Patterns or Files With Grep

[#excluding-single-pattern]Excluding a single pattern[#excluding-single-pattern] When using the [.inline-code]grep[.inline-code] command, to invert the search and return lines that do not include a specific pattern or exclude a specific string, you can use

www.warp.dev

 

728x90

'공부' 카테고리의 다른 글

[airflow] loop dags  (0) 2022.12.28
[spark] --name {appName}  (0) 2022.12.28
[spark] text files  (0) 2022.12.20
[hive] `PARTITIONED BY` & `CLUSTERED BY`  (0) 2022.12.20
[scp] tez.tar.gz  (0) 2022.12.20
댓글