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