$ perl -e'print "Just Another Perl One-Liner\n"' Just Another Perl One-Liner $ history -n -1 | head -1 >> ~/oneliners.txt #### alias keep='history -n -1 | head -1 >> ~/oneliners.txt'