Find the answer to your Linux question:
Results 1 to 4 of 4
how can i make wget recognize links with square brackets [] in them? right now I can use the asterisk * do replace them... but is there any other solution?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Location
    Estonia
    Posts
    6

    Get wget using square brackets?


    how can i make wget recognize links with square brackets [] in them? right now I can use the asterisk * do replace them... but is there any other solution?

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    what links use [] in them??

    It could be that u need to escape the [] to do this put a \ infront of it like this:

    Code:
    wget http://www.somesite.com/\[1\]
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Location
    Estonia
    Posts
    6
    I'm using a lot of links with sq brackets in them, eg:
    ftp://some.site.site/some.file[2,91GB].some.ext

    and therefore i have to use wget ftp://some.site.site/some.file*2,91GB*.some.ext to get it

    isn't there a way to disable the denoting or whatever?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    for a filename like that, try:

    Code:
    wget ftp://some.site.site/some.file\[2,91GB\].some.ext
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •