![]() |
Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.
|
NAME
s.p. - string parameter
DESCRIPTION
This is a test command made to find a way to use positional
parameters when needs different strings with more than one word. It's inspired on a suggestion
made by J. Aquino.
The objective is changing a phrase in such a way that one will be able to use positional
parameters. Then one can separate phrases with a delimiter, in this case ";".
SYNTAX
s.p. "phrase.1" ; "phrase.2" ; ... ; "phrase.n"
EXAMPLE
s.p. 1 2 3 4 ; 5 6 7 8 -> 1-2-3-4 5-6-7-8
Example of a search based command with two queries and positional parameters.
The command is made in two steps, c1 and c2
c1: www.url.com/?q1=${string1}&q2=${string2}
c2: c1 -string1 {% 1 {s.p. %s}} -string2 {% 2 {s.p. %s}}
c2 1 2 3 ; 4 5 6 -> www.url.com/?q1=${1-2-3}&q2=${4-5-6}
AUTHOR
Luis Gabriel Matallana Vallejo <luisgmatallana@gmail.com>