Com o GNU coreutils
:
split -l1 file --filter='cat another - > "$FILE"'
Os arquivos de saída são nomeados xaa
, xab
etc. por padrão:
$ head xa?
==> xaa <==
1 40780020 40780020
2 41223003 41223003
3 43218205 43218205
4 43395462 43395462
5 43803907 43803907
1 16451824 16451824
==> xab <==
1 40780020 40780020
2 41223003 41223003
3 43218205 43218205
4 43395462 43395462
5 43803907 43803907
2 17322876 17322876
==> xac <==
1 40780020 40780020
2 41223003 41223003
3 43218205 43218205
4 43395462 43395462
5 43803907 43803907
3 17354363 17354363
==> xad <==
1 40780020 40780020
2 41223003 41223003
3 43218205 43218205
4 43395462 43395462
5 43803907 43803907
4 17355234 17355234
==> xae <==
1 40780020 40780020
2 41223003 41223003
3 43218205 43218205
4 43395462 43395462
5 43803907 43803907
5 17371253 17371253