I have a listing of files that have numeric characters at the end after a dot.
ex :
abc.log
abc.log.1
xyz.log
xyz.log.1
xyz.log.2
I need to list only the logs that have .log at the ending and not the ones with .log.1 or .log.2 at the ending.
I have a listing of files that have numeric characters at the end after a dot.
ex :
abc.log
abc.log.1
xyz.log
xyz.log.1
xyz.log.2
I need to list only the logs that have .log at the ending and not the ones with .log.1 or .log.2 at the ending.
# grep searchterm *.log
or# ls *.log
would do this? Or are you asking something else that I'm not understanding? – Kefka May 17 '19 at 12:39