remove last column
This commit is contained in:
onceupon 2018-02-09 10:36:52 +08:00 committed by GitHub
parent 2e1da343d6
commit 6e6d0b9f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,6 +456,11 @@ awk 'BEGIN{OFS="\t"}$3="chr"$3'
awk '!/bbo/' file
```
##### Remove last column
```bash
awk 'NF{NF-=1};1' file
```
##### Usage and meaning of NR and FNR
e.g.
fileA: