Friday, August 18, 2017

AWK splice text into chunks

This code slice the first 10K rows into F1, then next 10K rows into F2, and so on
awk 'NR%10000==1{x="F"++i;}{print > x}'  filename

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