0

I can unzip just fine like this

find /file/location -mtime -1 -print -exec unzip -o {} \;

But I get an error if I try to make it unzip to another location /home/username:

find /file/location -mtime -1 -print -exec unzip -d /home/username;

What am I doing incorrectly?

αғsнιη
  • 41,407
SPena
  • 1

1 Answers1

2

You need pass fileName to unzip it, also escape the special character ;.

find /file/location -mtime -1 -type f -exec unzip {} -d /home/username \;
αғsнιη
  • 41,407