title: Linux - FTP script to download file (wildcard in directory name)
body: <p>I am trying to create an FTP script to automatic download (using CRON) 1 file daily.</p>
  <p>The directory and file names are dates with random numbers at the end. For example:</p>
  <p>20201014-RandomNumberHere</p>
  <p>So I need to create a script that get current date and set it to a variable and adds a wildcard at the end. For example:</p>
  <pre><code>variable = &quot;$ (date +&quot;%Y%m%d&quot;)&quot;
  </code></pre>
  <p>The script would be something like this:</p>
  <pre><code>wget ftp://user:pass@ftp.server.com/variable*/variable*.GBK
  </code></pre>
  <p>How do I use wildcard with FTP?</p>