mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2025-02-16 21:18:23 +00:00
add awk
remove last column
This commit is contained in:
parent
2e1da343d6
commit
6e6d0b9f66
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue