add new one-liner to 'awk' section
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
fb158ea7db
commit
46e0cedff6
@ -3259,6 +3259,15 @@ awk '!x[$0]++' filename
|
|||||||
awk '{print $NF}' filename
|
awk '{print $NF}' filename
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### Remove empty lines
|
||||||
|
|
||||||
|
```bash
|
||||||
|
awk 'NF > 0' filename
|
||||||
|
|
||||||
|
# alternative:
|
||||||
|
awk NF filename
|
||||||
|
```
|
||||||
|
|
||||||
###### Print multiple columns with separators
|
###### Print multiple columns with separators
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user