This website works better with JavaScript.
Home
Explore
Help
Sign In
david.wurm
/
InternetServicesBook
mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
add new one-liner to 'awk' section
- signed-off-by: trimstray <trimstray@gmail.com>
pull/89/head
trimstray
5 years ago
parent
fb158ea7db
commit
46e0cedff6
1 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save