I sometimes encounter similar situations, and my answer to the question
is that it is easier to remember the command and reconstruct it than to
remember what name I gave to the script running the command with my
supplied arguments.  (Reminds me of Richard Feynman's approach for
remembering theorems - by deriving the proof each time a theorem is
needed.)

Maybe the right approach would be to have a script which collects
together all those one-liners and lets you choose one and supply
arguments.  Such a script would use 'dialog', 'whiptail' or 'zenity' to
prompt the user.
(Personally, I found 'dialog' to be more convenient than the other two
tools.)
                                              --- Omer


On Mon, 2008-08-18 at 10:54 +0300, Shachar Shemesh wrote:
> Amos Shapira wrote:
> > Hello,
> >
> > I have this long command line which I keep changing multiple instances
> > of host names in it:
> >   
> I know this isn't answering your question, but still:
> If you keep using the same command line, why don't you script it?

-- 
Eli Marmor's Law:  netiquette forbids people from replying "I agree with
you" to messages in mailing lists, skewing discussions in favor of the
troublemaker type of dissenters.
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to