Skip to main content
Unneeded $
Source Link

If you don't need to use awk, paste could work:

$ paste -d $'\n''\n' <fileB fileA - - - | tr -s $'\n''\n' >fileC

The tr part isn't strictly necessary, so you can remove it if you don't mind extra newlines.

If you don't need to use awk, paste could work:

$ paste -d $'\n' <fileB fileA - - - | tr -s $'\n' >fileC

The tr part isn't strictly necessary, so you can remove it if you don't mind extra newlines.

If you don't need to use awk, paste could work:

$ paste -d '\n' <fileB fileA - - - | tr -s '\n' >fileC

The tr part isn't strictly necessary, so you can remove it if you don't mind extra newlines.

Cutting unnecessary command
Source Link

If you don't need to use awk, paste could work:

$ cat fileB | paste -d $'\n' <fileB fileA - - - | tr -s $'\n' >fileC

The tr part isn't strictly necessary, so you can remove it if you don't mind extra newlines.

If you don't need to use awk, paste could work:

$ cat fileB | paste -d $'\n' fileA - - - | tr -s $'\n' >fileC

The tr part isn't strictly necessary, so you can remove it if you don't mind extra newlines.

If you don't need to use awk, paste could work:

$ paste -d $'\n' <fileB fileA - - - | tr -s $'\n' >fileC

The tr part isn't strictly necessary, so you can remove it if you don't mind extra newlines.

deleted 12 characters in body
Source Link

If you don't need to use awk, paste could work:

$ cat fileB | paste -d $'\n' fileA - - - | tr -s $'\n' >fileC

The tr part isn't strictly necessary, so you can remove it if you don't mind a couple of extra trailing newlines.

If you don't need to use awk, paste could work:

$ cat fileB | paste -d $'\n' fileA - - - | tr -s $'\n' >fileC

The tr part isn't necessary, so you can remove it if you don't mind a couple of extra trailing newlines.

If you don't need to use awk, paste could work:

$ cat fileB | paste -d $'\n' fileA - - - | tr -s $'\n' >fileC

The tr part isn't strictly necessary, so you can remove it if you don't mind extra newlines.

Note
Source Link
Loading
Source Link
Loading