>q repeat 48 { sed -r 's/(.)(.*)/\2\1/;1h;1d;$G' q|tee q;echo }