perl -e 'print reverse <>' filename