add new one-liner to 'awk' section

- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
trimstray 2019-05-13 13:21:39 +02:00
parent fb158ea7db
commit 46e0cedff6

View file

@ -3259,6 +3259,15 @@ awk '!x[$0]++' filename
awk '{print $NF}' filename
```
###### Remove empty lines
```bash
awk 'NF > 0' filename
# alternative:
awk NF filename
```
###### Print multiple columns with separators
```bash