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}
}
So, today I cloned a repo and it has many branches. I know one of the branches has a file that is updated and contains the word "token". This is how I find out which branch it is:
git branch -a | cut -c3- | cut -d' ' -f 1 | xargs git grep "token"
``` version: '1' services: man: build: . image: my-alpine:latest ``` Dockerfile: ``` FROM alpine:latest ENV PYTH...