Bash/ Take substring from a string
bash, sh
Solution
You can pipe the output to `sed`:
... | sed 's/.*Rev\.\([0-9]*\).*/\1/'
Problem
I run the next: ``` find . -type f -printf '%T@ %p\n' | sort -n | tail -1 ``` this return me the next: ``` 1376221215.000000000 ./Rev.12345/run.exe ``` I want to get only the 12345 number. Which command I should use (I try to use cut command, without success)?