[wellylug] yet another simple super basic bash question

Mark Signal mark at databackup.co.nz
Wed Dec 22 10:57:51 NZDT 2004


Hi

I need to reverse a 4 digit number in a bash script
eg 1234 becomes a variable of 4321
I suppose I could do it with cut and reassemble the bits in the reverse 
order but there must be a neater way.

any suggestions?

cheers

Mark




More information about the wellylug mailing list