5 ms·
It's not too hard to do (a very basic) implementation of splitting on | and ;, e.g. sed 's/ *| */\n/g' ~/.bash_history | cut -f1 -d' ' | ... (This fails on
by dbaupp 14y ago
It's not too hard to do (a very basic) implementation of splitting on | and ;, e.g.
sed 's/ *| */\n/g' ~/.bash_history | cut -f1 -d' ' | ...
(This fails on something like "echo 'a | b'" and doesn't split correctly on |& and || and doesn't split at all on &&.)