Quote:
Originally Posted by vino
The pattern is not very clear. But you can try
Code:
grep -oE "[[:digit:]]{1,}" input.txt
If that does not satisfy your requirement, perhaps this.
Code:
sed -n -e "s/.*:\([0-9]*\).*/\1/p" input.txt
|
But if there is more numbers on that line for example:
how_old_r_u:45782<br>APPLY:[30000,t3,t4]:Plummet
It seems when I run the command
Code:
grep -oE "[[:digit:]]{1,}" input.txt