We can find pattern at the end of the line by $. Can we find pattern at the beginning of the line? grep "[78]...$" grepdemo.txt, how this command find scholarship between 7000 to 8999 ?
grep "^A" grepdemo.txt, why this command only highlight the roll number starting with A, why not names ?
312 visits
Outline:Outline: More on grep command Search using grep To match more than one pattern To check a word that has different spelling Character class The use of * To match any one character using dot To match a pattern at the beginning of the file To match a pattern at the end of the file
Outline: More on grep command Search using grep To match more than one pattern To check a word that has different spelling Character class The use of * To match any one character using dot To match a pattern at the beginning of the file To match a pattern at the end of the file
Show video info
Pre-requisite