Skip to main content
1 of 5

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

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