almost awk only solution
This commit is contained in:
@@ -37,4 +37,5 @@ sed 's/^(#|$|\s+#.*)//g' /etc/profile > profile
|
|||||||
## Sed
|
## Sed
|
||||||
```bash
|
```bash
|
||||||
history | awk '{print $4}' | sort | uniq -c | sort -n
|
history | awk '{print $4}' | sort | uniq -c | sort -n
|
||||||
|
history | awk '{cmd[$4]++};END{ for (ptr in cmd) print ptr, cmd[ptr] }' | sort -k2 -n
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user