rot (1) --- rotate or reverse strings from STDIN to STDOUT 03/20/80 _U_s_a_g_e rot [ [+ | -] ] _D_e_s_c_r_i_p_t_i_o_n 'Rot' circularly rotates character strings found on standard input the number of positions specified by , in a manner similar to the APL function "reversal/rotate". Specification of a positive will rotate the string from left to right the number of characters specified. If is negative, the string will be rotated from right-to-left. When a string is encountered that is not as long as the absolute value of , the string is rotated circularly until the rotation count is exhausted. If is not specified, the strings on standard input are reversed, as with the APL monadic function. _E_x_a_m_p_l_e_s palindromes> rot ar -t archive | rot -40 | sort | rot 40 rot 5 _S_e_e _A_l_s_o take (1), drop (1), iota (1), stake (2), sdrop (2) rot (1) - 1 - rot (1)