Update README.md

This commit is contained in:
onceupon 2016-08-18 11:04:58 +08:00 committed by GitHub
parent e7d3e325d2
commit bf4104af92

View file

@ -419,10 +419,15 @@ awk '{printf("%s\t%s\n",NR,$0)}'
e.g.
seperate
David cat,dog
into
David cat
David dog
detail here: http://stackoverflow.com/questions/33408762/bash-turning-single-comma-separated-column-into-multi-line-string
```bash
awk '{split($2,a,",");for(i in a)print $1"\t"a[i]}' file