Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    BTW, those aren’t regular expressions, they’re shell globs. Commented Feb 11, 2018 at 18:59
  • So how could I target the phpmyadmin file name (zip and dir)? Commented Feb 11, 2018 at 19:06
  • There's nothing stopping you from telling wget to write to a specific file name with -O filename.zip and then use that name. That will get rid of that unmaintainable shell globbing pattern. But then again, you already specify the explicit name of the file at the end of the URL, so why use a shell glob in the first case? Commented Feb 11, 2018 at 19:14
  • The echo $pma only outputs the pattern because of luck. If you have a file/directory matching the pattern in the current directory, you get that name instead. Commented Feb 11, 2018 at 19:17
  • 1
    @ilkkachu Still, the ${pma}*.zip could definitely go away. Commented Feb 11, 2018 at 19:30