Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

remember perl one-liners

by tinita (Parson)
on Dec 11, 2005 at 05:17 UTC ( #515794=CUFP: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    use warnings;
    open my $fh, ">>", $history or die $!;
    print $fh $hist;
    close $fh;
  2. or download this
    # put these in your .bashrc
    alias addhist="history 2 |"
    alias readhist="history -r ~/.oneliners"
    [hours or days later...]
    $ readhist
    $ !! # will get you your last saved oneliner from above

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://515794]
Approved by dorko
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2015-11-26 10:26 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (697 votes), past polls