Tuesday, September 19, 2017

filter a file based on tokens in another file

BEGIN{
  FS="|"
  OFS="|"

  while ((getline < (“Token_list_file.csv")) > 0) {
  id[$1]=$1;
  }
}

{
  appid = $1;
  if(appid in id) {print $0;}

}

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...