unzip files with yesterday date to 'other' location not working

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












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?







share|improve this question






















  • Possibly related: Understanding the -exec option of find
    – steeldriver
    Mar 23 at 18:58














up vote
0
down vote

favorite












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?







share|improve this question






















  • Possibly related: Understanding the -exec option of find
    – steeldriver
    Mar 23 at 18:58












up vote
0
down vote

favorite









up vote
0
down vote

favorite











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?







share|improve this question














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?









share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 19:11









αғsнιη

14.8k82462




14.8k82462










asked Mar 23 at 18:54









SPena

1




1











  • Possibly related: Understanding the -exec option of find
    – steeldriver
    Mar 23 at 18:58
















  • Possibly related: Understanding the -exec option of find
    – steeldriver
    Mar 23 at 18:58















Possibly related: Understanding the -exec option of find
– steeldriver
Mar 23 at 18:58




Possibly related: Understanding the -exec option of find
– steeldriver
Mar 23 at 18:58










1 Answer
1






active

oldest

votes

















up vote
2
down vote













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



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





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433125%2funzip-files-with-yesterday-date-to-other-location-not-working%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













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



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





    share|improve this answer
























      up vote
      2
      down vote













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



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





      share|improve this answer






















        up vote
        2
        down vote










        up vote
        2
        down vote









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



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





        share|improve this answer












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



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






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 23 at 19:11









        αғsнιη

        14.8k82462




        14.8k82462






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433125%2funzip-files-with-yesterday-date-to-other-location-not-working%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?