4 ms·
<offtopic> I have implemented a `_split` command to split a line by a separator and `_stat` command that does basically `sort | uniq -c | sort -nr` counting ele
by visarga 5y ago
<offtopic>
I have implemented a `_split` command to split a line by a separator and `_stat` command that does basically `sort | uniq -c | sort -nr` counting elements and sorting by frequency. Really useful operations for me.
When my one liners become 2-3 lines long I need to switch to a regular script, but I also log all my shell commands years back and have something a bit better than `history | grep word` to search it.</>
- nerdponx 5y ago> I also log all my shell commands years back and have something a bit better than `history | grep word` to search it. I'd be very interested to hear more about this.