TMTOWTDI. Applying the substitution, s/^[^ ]*\K {5}//, to each line, achieves the realignment you show.
$ cat pm_1207104_data.txt 18450 0600060009 25 0 768188519 768188519 + 0030020124 000 000 10 77019 73587 25 0 73165 7307 +40506 0160100051 029 000 74049 25 0 73950 + 1040030047 030 000 14048 14048 25 0 11833 1183 +3 022 000 18450 0600060027 25 0 709948778 709948778 + 0010030064 000 000 10 73330 25 0 0050312875 7702 +0 000 000 18450 0600040020 25 0 703820853 703820853 + 0030020125 000 000 10
$ perl -pe 's/^[^ ]*\K {5}//' pm_1207104_data.txt 18450 0600060009 25 0 768188519 768188519 + 0030020124 000 000 10 77019 73587 25 0 73165 730740506 + 0160100051 029 000 74049 25 0 73950 + 1040030047 030 000 14048 14048 25 0 11833 11833 + 022 000 18450 0600060027 25 0 709948778 709948778 + 0010030064 000 000 10 73330 25 0 0050312875 77020 + 000 000 18450 0600040020 25 0 703820853 703820853 + 0030020125 000 000 10
— Ken
In reply to Re: Reformat file with empty spaces
by kcott
in thread Reformat file with empty spaces
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |