1

Reorder fields/characters with cut command

view story
linux-howto

http://unix.stackexchange.com – I have One file - temp.txt - which contains ABCDF PQRST LMNOP I tried this cut command $ cut -c 2-5 temp.txt BCDF QRST MNOP output is right. $ cut -c 1,2,3,4 temp.txt ABCD PQRS LMNO output is right. But when I change sequence, meaning $ cut -c 2-4,1 temp.txt ABCD PQRS LMNO above output displayed. but logically output is BCDA QRSP MNOL so my question is how this happen ,any reason behind that. (HowTos)