On Fri, August 10, 2012 11:36 pm, Glen Turner wrote:
Glen, thanks
> Unix is a set of tools which you string together.
that;s exactly what my friend Rod kept telling me
> awk '{ printf "%s %s\n", $(NF-1), $0 }' fred.txt | sort -t '-' -k 3n -k 2n
> -k 1n | cut -f 2- -d ' '
puurfect, thanks!
On Fri, August 3, 2012 9:50 am, [email protected] wrote:
> Something like (untested):
> sed 's/^.* \([0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9][0-9][0-9]\) [^
> ]*$/\3\2\1 &/p' | sort | sed 's/^........ //'
Peter, thanks
I was getting an error on one of the lines, but now with Glen's string I
can stop trying to find the error, thanks again
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html