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

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

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -