Answers: <p>This is because there are special characters in the file names and bash misunderstands while expanding that command.</p>
  <p>To avoid this error:</p>
  <p><strong>solution-1</strong>: use the command within <strong>''</strong> <code>unzip 'service*.zip'</code><br />
  <strong>solution-2</strong>: pass the file name with <strong>\</strong> to escape special characters <code>unzip service\\*.zip</code></p>
  
Answers: CC BY-SA 4.0
Answers: 2023-11-21T15:46:18.753Z
Answers: 2023-11-21T15:46:18.753Z
Answers: AV Reddy
Body: <p>I'm trying to unzip multiple files which has a prefix in common <strong>service1.zip</strong> <strong>service-2.zip</strong> <strong>service_3.zip</strong> and so on...</p>
  <p>Now, when I try to unzip all those files at once using the command <code>unzip service*.zip</code> I'm getting an error which says <code>caution: filename not matched: service.zip</code></p>
  
Tags: <linux><ubuntu><bash>
Title: unzip | caution: filename not matched
UserDisplayName: AV Reddy
ThreadText: # unzip | caution: filename not matched
  
  (Asked by: username_0 on 2023-11-21)
  
  I'm trying to unzip multiple files which has a prefix in common **service1.zip** **service-2.zip** **service\_3.zip** and so on...
  
  Now, when I try to unzip all those files at once using the command `unzip service*.zip` I'm getting an error which says `caution: filename not matched: service.zip`
  
  **Tags:** linux, ubuntu, bash
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-11-21. Score: 0 | Accepted answer
  
  This is because there are special characters in the file names and bash misunderstands while expanding that command.
  
  To avoid this error:
  
  **solution-1**: use the command within **''** `unzip 'service*.zip'`  
  **solution-2**: pass the file name with **\** to escape special characters `unzip service\\*.zip`
  
  
  ---
  
  