Recursive Symbolic linkscommand line friendly search engine, for use with LinksCreating links to...

How many Jimmys can fit?

Four ships at the ocean with the same distance

Was the 45.9°C temperature in France in June 2019 the highest ever recorded in France?

How to say "is going" in Russian in "this game is going to perish"

Can we share mixing jug/beaker for developer, fixer and stop bath?

What is the highest level of accuracy in motion control a Victorian society could achieve?

Why does the Misal rico de Cisneros uses the word "Qiſſa", and what is it supposed to mean? Why not "Miſſa" (Missa)?

How to gather entities into sets?

Is this car delivery via Ebay Motors on Craigslist a scam?

Shipped package arrived - didn't order, possible scam?

Why do Martians have to wear space helmets?

How do resistors generate different heat if we make the current fixed and changed the voltage and resistance? Notice the flow of charge is constant

Is conquering your neighbors to fight a greater enemy a valid strategy?

What is the shape of the upper boundary of water hitting a screen?

What do you call a situation where you have choices but no good choice?

Did William Shakespeare hide things in his writings?

What are the consequences for a developed nation to not accept any refugee?

What does the multimeter dial do internally?

Is it ok for parents to kiss and romance with each other while their 2- to 8-year-old child watches?

QR codes, do people use them?

What are some bad ways to subvert tropes?

What purpose does mercury dichloride have in fireworks?

Users forgotting to regenerate PDF before sending it

Math mode inside underbrace text



Recursive Symbolic links


command line friendly search engine, for use with LinksCreating links to websitesPrevent Links browser from share cookies when opened by multiple screenquery all symbolic links to a directoryDoes find -links count the hard links or symbolic links?Hard links to `/`?How to find all hard links to a given file?Redirect links of a php applicationcp -al not creating hard linkscurl get all links of a web-page






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I want to drop through my mp3 folders and create a sym link to each mp3 in a folder called links. I would like for my links to be relative to the directory structure rather than absolute. I tried this and no luck.



find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s  ../links/ "$i$mp3"; done


Can someone help please?










share|improve this question









New contributor



RottenTurkey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Looks like the * was omitted in my cmd line. should be. find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s ../links/ "$i$mp3"; done

    – RottenTurkey
    1 hour ago











  • Please try a lot harder to explain this clearly.  You talk about creating, but you show a command that does deletes. Huh? Why?  What do you mean by “recursive”?  It would help if you showed an example before and after. … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    31 mins ago




















0















I want to drop through my mp3 folders and create a sym link to each mp3 in a folder called links. I would like for my links to be relative to the directory structure rather than absolute. I tried this and no luck.



find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s  ../links/ "$i$mp3"; done


Can someone help please?










share|improve this question









New contributor



RottenTurkey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Looks like the * was omitted in my cmd line. should be. find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s ../links/ "$i$mp3"; done

    – RottenTurkey
    1 hour ago











  • Please try a lot harder to explain this clearly.  You talk about creating, but you show a command that does deletes. Huh? Why?  What do you mean by “recursive”?  It would help if you showed an example before and after. … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    31 mins ago
















0












0








0








I want to drop through my mp3 folders and create a sym link to each mp3 in a folder called links. I would like for my links to be relative to the directory structure rather than absolute. I tried this and no luck.



find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s  ../links/ "$i$mp3"; done


Can someone help please?










share|improve this question









New contributor



RottenTurkey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I want to drop through my mp3 folders and create a sym link to each mp3 in a folder called links. I would like for my links to be relative to the directory structure rather than absolute. I tried this and no luck.



find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s  ../links/ "$i$mp3"; done


Can someone help please?







symlink






share|improve this question









New contributor



RottenTurkey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



RottenTurkey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 7 mins ago









Freddy

5,5351 gold badge6 silver badges24 bronze badges




5,5351 gold badge6 silver badges24 bronze badges






New contributor



RottenTurkey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 1 hour ago









RottenTurkeyRottenTurkey

1




1




New contributor



RottenTurkey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




RottenTurkey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • Looks like the * was omitted in my cmd line. should be. find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s ../links/ "$i$mp3"; done

    – RottenTurkey
    1 hour ago











  • Please try a lot harder to explain this clearly.  You talk about creating, but you show a command that does deletes. Huh? Why?  What do you mean by “recursive”?  It would help if you showed an example before and after. … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    31 mins ago





















  • Looks like the * was omitted in my cmd line. should be. find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s ../links/ "$i$mp3"; done

    – RottenTurkey
    1 hour ago











  • Please try a lot harder to explain this clearly.  You talk about creating, but you show a command that does deletes. Huh? Why?  What do you mean by “recursive”?  It would help if you showed an example before and after. … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    31 mins ago



















Looks like the * was omitted in my cmd line. should be. find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s ../links/ "$i$mp3"; done

– RottenTurkey
1 hour ago





Looks like the * was omitted in my cmd line. should be. find . -name "*.mp3" -type l -delete; mp3="mp3"; for i in ./*/; do; ln -s ../links/ "$i$mp3"; done

– RottenTurkey
1 hour ago













Please try a lot harder to explain this clearly.  You talk about creating, but you show a command that does deletes. Huh? Why?  What do you mean by “recursive”?  It would help if you showed an example before and after. … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

– Scott
31 mins ago







Please try a lot harder to explain this clearly.  You talk about creating, but you show a command that does deletes. Huh? Why?  What do you mean by “recursive”?  It would help if you showed an example before and after. … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

– Scott
31 mins ago












1 Answer
1






active

oldest

votes


















0














Assuming that links is on the same level as your mp3 directory structure or above (or else you have to adjust the relative path ..):



cd /path/to/links
find .. -name "*.mp3" -type f -exec ln -s {} ;


Note that the mp3 files can have the same filenames and the first one found "wins" the symbolic link.





share


























    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    RottenTurkey is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f528614%2frecursive-symbolic-links%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Assuming that links is on the same level as your mp3 directory structure or above (or else you have to adjust the relative path ..):



    cd /path/to/links
    find .. -name "*.mp3" -type f -exec ln -s {} ;


    Note that the mp3 files can have the same filenames and the first one found "wins" the symbolic link.





    share




























      0














      Assuming that links is on the same level as your mp3 directory structure or above (or else you have to adjust the relative path ..):



      cd /path/to/links
      find .. -name "*.mp3" -type f -exec ln -s {} ;


      Note that the mp3 files can have the same filenames and the first one found "wins" the symbolic link.





      share


























        0












        0








        0







        Assuming that links is on the same level as your mp3 directory structure or above (or else you have to adjust the relative path ..):



        cd /path/to/links
        find .. -name "*.mp3" -type f -exec ln -s {} ;


        Note that the mp3 files can have the same filenames and the first one found "wins" the symbolic link.





        share













        Assuming that links is on the same level as your mp3 directory structure or above (or else you have to adjust the relative path ..):



        cd /path/to/links
        find .. -name "*.mp3" -type f -exec ln -s {} ;


        Note that the mp3 files can have the same filenames and the first one found "wins" the symbolic link.






        share











        share


        share










        answered 5 mins ago









        FreddyFreddy

        5,5351 gold badge6 silver badges24 bronze badges




        5,5351 gold badge6 silver badges24 bronze badges






















            RottenTurkey is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            RottenTurkey is a new contributor. Be nice, and check out our Code of Conduct.













            RottenTurkey is a new contributor. Be nice, and check out our Code of Conduct.












            RottenTurkey is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f528614%2frecursive-symbolic-links%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...