Monday, August 28, 2017

join multiple text files with same headers

If each file has a header line but in the output file you only want to have one header line:

awk '
    FNR==1 && NR!=1 { while (/^LoanNumber/) getline; }
    1 {print}
'  input_file1 input_file2 input_file3 ... > output_file

No comments:

Post a Comment

Any comments?

my-alpine and docker-compose.yml

 ``` version: '1' services:     man:       build: .       image: my-alpine:latest   ```  Dockerfile: ``` FROM alpine:latest ENV PYTH...