I need to parse a word: awk or sed?
I just need a one-liner. I search this directory for a file named finished.[then a number] "finished.3". It will never go over 9. I just want to grab the number from the end of the file name to put it in an if statement.
$(ls /dir/number.* | %%%%% )
I'm thinking either awk or sed, but I've never run across anything that parses words. It can be based on the the characters of the line too...
Thoughts?
|