Skip to main content
4 of 5
Cutting unnecessary command

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.