Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

combine files with header bash

awk '
    FNR==1 && NR!=1 { while (/^<header>/) getline; }
    1 {print}
' file*.txt >all.txt
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #combine #files #header #bash
ADD COMMENT
Topic
Name
9+7 =