Content
@
0 reply
0 recast
0 reaction
Steve
@sdv.eth
What’s a handy cli tool you think others probably don’t but should know about? Mine would be tldr; which is a community contributed and modern replacement for man pages. Gets you the information you’re looking for 90% of the time with way less reading. h/t to @we for putting me down on it
12 replies
0 recast
12 reactions
jtgi
@jtgi
I also really like `cut`. I used it often for log processing like this, e.g. ``` $ cat nginx_access | grep 500 | cut -d " " -f 1,3 500 /frames/1 500 /frames/2 ... $ cat nginx_access | grep 500 | cut -d " " -f 1,3 | sort | uniq -c 10 500 /frames/1 22 500 /frames/2 ... ``` It accepts any delimeter via (-d).
1 reply
0 recast
1 reaction
jtgi
@jtgi
and the -f option accepts comma delimited (-f 1,5) or range (-f 1-3), works great with sort, uniq. awk works too but i always trip over the braces and syntax.
0 reply
0 recast
0 reaction