Results 1 to 4 of 4
Hi Guys
Is there any way I can escape the "?" char when invoking the -A option:
Code:
wget -A "page.php?getid=1" mysite.com...
- 08-16-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
escaping "?" char in wget -A option
Hi Guys
Is there any way I can escape the "?" char when invoking the -A option:
Code:wget -A "page.php?getid=1" mysite.com
- 08-17-2010 #2
Yup. Single quotes (') do not allow any interpolation of the internal string. Double quotes do variables as well as shell globbing.
So this should work:
Code:wget -A 'page.php?getid=1' mysite.com
DISTRO=Arch
Registered Linux User #388732
- 08-17-2010 #3Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
Thanks. What if I wanted to use the * wildcard between single quotes ? Would it be translated as a literal or wildcard ? e.g:
Code:wget -A 'page.php?getid=*' mysite.com
- 08-22-2010 #4
If you use single quotes for a string, the string is treated literally: no expansion is performed on anything.
DISTRO=Arch
Registered Linux User #388732


Reply With Quote
