I'm doing some data analysis in bash with various tools and every now and then I enter something like
>some_command -with -complicated -arguments
Often I immediately follow this up with
>echo "some_command -with -complicated -arguments" >> mylog.txt
Is there any way to do this all at once? It's a pain to hit the up arrow, add echo
and quotes so forth.
I don't want to log my entire session, I should add, because there would be a lot of stuff not worth recording.