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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -