I need help search for letters at beginning and ending of a line in unix -
i starting out in unix , have txt file (words.txt) , there 1 word per line , need search , find words start 'com' , end 'ter'. cannot figure out do, can find words starting 'com' using 'grep ^com words.txt' not know how find words meet both conditions. tried 'grep '^com.*ter$' words.txt' did not anything. appreciated!
try
grep '^com.*ter$' words.txt
Comments
Post a Comment