13 Jul
2010
13 Jul
'10
5 p.m.
On 13/07/10 16:54, Brett Parker wrote:
But, Martijn has a neater solution in the form: grep -E -o '\$\w+' file.txt
Just beaten to the post! But I'll post my version in case it's useful: grep -oE '\$\w+' file.txt | sort -u -E enables regex matching -o tells grep to only output the match (not the whole line) sort sorts the results, -u removes duplicates -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG