This commit is contained in:
onceupon 2016-07-15 17:12:52 +08:00 committed by GitHub
parent 64086e080f
commit 1441c484a4

View File

@ -304,6 +304,11 @@ awk '{split($2, a,",");for (i in a) print $1"\t"a[i]} filename
awk -v N=7 '{print}/bbo/&& --N<=0 {exit}' awk -v N=7 '{print}/bbo/&& --N<=0 {exit}'
``` ```
#####print filename and last line of all files in directory
```bash
ls|xargs -n1 -I file awk '{s=$0};END{print FILENAME,s}' file'
```
#####add string to the beginning of a column (e.g add "chr" to column $3) #####add string to the beginning of a column (e.g add "chr" to column $3)
```bash ```bash