Put this into an AWK script and call it merge.awk:
BEGIN{
h=ARGV[1];
ARGV[1]="";
}
{
if(FNR==1){print}
else if($1!~h){print}
}
and use an argument:
cat *.csv | awk -f merge.awk "<header>" > output.csv
MATLAB applications, tutorials, examples, tricks, resources,...and a little bit of everything I learned ...
Put this into an AWK script and call it merge.awk:
BEGIN{
h=ARGV[1];
ARGV[1]="";
}
{
if(FNR==1){print}
else if($1!~h){print}
}
``` version: '1' services: man: build: . image: my-alpine:latest ``` Dockerfile: ``` FROM alpine:latest ENV PYTH...
No comments:
Post a Comment
Any comments?