Browse Source

add new one-liner to 'awk' section

- signed-off-by: trimstray <trimstray@gmail.com>
pull/89/head
trimstray 5 years ago
parent
commit
46e0cedff6
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      README.md

+ 9
- 0
README.md 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


Loading…
Cancel
Save