Soldato
..
Last edited:
sed 's/\([0-9]\{2\}\/\)\{2\}[0-9]\{2\}[ \t]\+\(.*\)[ \t]\+\$.*/\2/g'
28/11/07 SPENT ON STUFF $5
28/11/07 834637 $1,035
SPENT ON STUFF
834637
[andrew@server tmp]$ cat sed.txt
28/11/07 SPENT ON STUFF $5
28/11/07 834637 $1,035
[andrew@server tmp]$ cat sed.txt | sed 's/\([0-9]\{2\}\/\)\{2\}[0-9]\{2\}[ \t]\+\(.*\)[ \t]\+\$.*/\2/g'
SPENT ON STUFF
834637
grep -vP "^[0-9]" /path/to/file | grep -v '\$' | grep -oP '[a-zA-Z0-9 ]{1,}'