Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.

abv

(This command has been awarded a Yubnub Golden Egg)

http://jonathanaquino.com/yubscripts/abbreviate/abv.php?input=%s&xn_auth=no
NAME
     abv - Execute a yubnub command without having to type parameter names.

SYNOPSIS
     abv [COMMAND STRING]

EXAMPLES
     abv ifthen abc;def;equal;yub;nub;false
       (Executes: ifthen -value1 abc -value2 def -test equal -then yub -else nub -redirect false)

     abv change Hello World;rot-13
       (Executes: change Hello World -method rot-13)

     abv strreplace a;o;Banana Camera
       (Executes: strReplace -find a -replace o -string Banana Camera)

DESCRIPTION
     This command accepts another yubnub command and its parameters in an abbreviated form, and
     spits out the command fully formed, with parameters included.

     Let's use 'ifthen' as an example:
     Ifthen accepts up to 6 parameters (value1,value2,test,then,else,redirect), all these
     parameters are very informative and helpful to have around, but it can be inconvenient to
     type them all out. This is where 'abv' steps in to save the day.

     Instead of typing:
     ifthen -value1 abc -value2 def -test equal -then yub -else nub -redirect false

     You can type:
     abv ifthen abc;def;equal;yub;nub;false

     Both commands will spit out the same result. This could obviously be used to make abbreviated
     aliases of existing commands (check out 'ifth' for an example).

     It's important to know how 'abv' decides the order that the parameters go in. 'Abv' looks at the
     commands url to find the names of the parameters. Here's 'ifthen's URL:
     http://fromrocks.com/yubnub/ifthen/ifthen.php?value1=${value1}&value2=${value2}&test=${test}&then=${then}&els=${else}&redirect=${redirect=false}

     The parameters need to be typed into 'abv' in the same order that they appear in the
     URL. In this case the order is "value1,value2,test,then,else,redirect".

     If a command has a %s parameter, that value ALWAYS appears before other parameters, regardless
     of position. An abbreviated version of 'change' would be "abv change Hello World;rot-13"

NOTES
     The main reason I made this was so people could write fleshed out commands with
     parameters (which are easy to understand), but also have a easy way to shorten the commands
     for easy typing.

     This command should be considered experimental. I guarantee that it will not work on all
     commands. I have not done many tests with nesting, your mileage may vary. Please let me know
     of any bugs.

AUTHOR
     Allen Ormond - aormond (at) gmail (dot) com

     Much thanks to Sean O'Hagan, whose 'scrape' command is doing some behind the scenes work.
    
143 uses - Created 2006-03-30 07:05:22 - Last used 2024-02-19 14:41:27
Is this command broken? Tell Jon if you know how to fix it.