Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

My Conclusions (Re: The problem with one-liners)

by John M. Dlugosz (Monsignor)
on Feb 04, 2003 at 06:19 UTC ( #232475=note: print w/ replies, xml ) Need Help??


in reply to The problem with one-liners...

Many people save their history. The command shell I use, 4NT, also has logging options. However, if I saved everything, what I'm interested in might get lost in the forest of meaningless day-to-day commands.

So, I think I'll turn logging on when I'm developing a "one liner" to have the work automatically saved, then turn it off again. If I need to do something again, I can find the last line of the bunch of similar lines and copy that out, and save it to a one-liner file.

—John


Comment on My Conclusions (Re: The problem with one-liners)
Replies are listed 'Best First'.
Re: My Conclusions
by Aristotle (Chancellor) on Feb 04, 2003 at 13:57 UTC
    $ grep '^ *perl' .bash_history C:\> perl -lne"/^\s*perl/&&print" history.txt

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2015-07-08 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls