Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music
All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => command , shell script ,tool , crontab => Topic started by: golfreeze on กันยายน 04, 2022, 06:16:03 pm
-
==show line number if found exact word "day" not "today" in file test.txt
grep -n -w "day" test.txt
-
==found word="today" or "future" in file test.txt then show number also
grep -nw -i -e "today" -e "future" test.txt
-
##grep without word "tomorrow" on file test.txt
grep -v "tomorrow" test.txt
-
===fgrep = fix grep use with need finding word contain $ {} ? + . | ( )
fgrep "day$" test.txt