[wellylug] yet another simple super basic bash question

David Antliff dave.antliff at paradise.net.nz
Wed Dec 22 11:07:28 NZDT 2004


On Wed, 22 Dec 2004, Mark Signal wrote:
> I need to reverse a 4 digit number in a bash script

Can you use a perl oneliner in your environment?

$ echo "1234" | perl -ne 'print scalar reverse;'

-- 
David.




More information about the wellylug mailing list