in reply to Combine files with same extension in new file

perl is too fun!
>cat one.lox header dat1 dat2 > > >cat two.lox header dat3 dat4 > > >perl -lne "BEGIN { @ARGV = map glob, @ARGV; } if ($. > 1){print} cl +ose ARGV if eof;" *.lox > outfile.log<P> > > >cat outfile.log dat1 dat2 dat3 dat4<P>

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Combine files with same extension in new file -- oneliner
by holli (Abbot) on Jul 17, 2019 at 14:45 UTC
    What about the header?


    holli

    You can lead your users to water, but alas, you cannot drown them.