perl -ne "print scalar reverse" #### perl -ne "print reverse <>" < file-name