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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -