Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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
    #!/usr/bin/perl
    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 | addhist.pl"
    alias readhist="history -r ~/.oneliners"
    ...
    [hours or days later...]
    $ readhist
    $ !! # will get you your last saved oneliner from above
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-10-23 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls