Loading…
grepgrep searches for a pattern inside files. Think of it as Ctrl+F for the terminal.
grep "pattern" filename
grep -i "word" file — case-insensitivegrep -n "word" file — show line numbersgrep -c "word" file — count matchesA file called countries.txt contains information about several countries. Search it to find and display only the lines that mention Haiti.
Loading terminal engine...
This may take a moment on first load