Finding all files with a given extension whose base name is the name of the parent directoryRename All Files...

To exponential digit growth and beyond!

What did Brienne write about Jaime?

Why does the hash of infinity have the digits of π?

If I arrive in the UK, and then head to mainland Europe, does my Schengen visa 90 day limit start when I arrived in the UK, or mainland Europe?

Are runways booked by airlines to land their planes?

Is it safe to redirect stdout and stderr to the same file without file descriptor copies?

ifconfig shows UP while ip link shows DOWN

Cisco 3750X Power Cable

Unary Enumeration

How do you earn the reader's trust?

Physical only checkdb is failing, but full one is completed successfully

Does water in vacuum form a solid shell or freeze solid?

Who wrote “A writer only begins a book. A reader finishes it.”?

Is a world with one country feeding everyone possible?

How did the Allies achieve air superiority on Sicily?

Time complexity of an algorithm: Is it important to state the base of the logarithm?

Are there any German nonsense poems (Jabberwocky)?

What is Orcus doing with Mind Flayers in the art on the last page of Volo's Guide to Monsters?

Why'd a rational buyer offer to buy with no conditions precedent?

Knight's Tour on a 7x7 Board starting from D5

What is to the west of Westeros?

Is it normal to "extract a paper" from a master thesis?

Goldfish unresponsive, what should I do?

What is the purpose of the yellow wired panels on the IBM 360 Model 20?



Finding all files with a given extension whose base name is the name of the parent directory


Rename All Files with a Certain NameHow can you move (or copy) all files to a directory with the same filename prefix?Exclude directory in findFinding all .cpp and .h files and moving them to ~/junkFind command for lookup up a directory treeWhere does the pattern occur in a match by find?Find files that have a confirmed duplicate in same directory recursivelyfind files based on name and moving them with renaming simultaneouslyFind a directory which contains all the files in my listfind files with particular attributes, rename them to their directory name, copy them elsewhere






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







0















I want to recursively look for every *.pdf file in a directory ~/foo whose base name matches the name of the file's parent directory.



I assume this is doable using the -regex option to find but I'm not sure how to write the correct pattern.









share





























    0















    I want to recursively look for every *.pdf file in a directory ~/foo whose base name matches the name of the file's parent directory.



    I assume this is doable using the -regex option to find but I'm not sure how to write the correct pattern.









    share

























      0












      0








      0








      I want to recursively look for every *.pdf file in a directory ~/foo whose base name matches the name of the file's parent directory.



      I assume this is doable using the -regex option to find but I'm not sure how to write the correct pattern.









      share














      I want to recursively look for every *.pdf file in a directory ~/foo whose base name matches the name of the file's parent directory.



      I assume this is doable using the -regex option to find but I'm not sure how to write the correct pattern.







      find





      share












      share










      share



      share










      asked 5 mins ago









      Brian FitzpatrickBrian Fitzpatrick

      87321123




      87321123






















          0






          active

          oldest

          votes












          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f520078%2ffinding-all-files-with-a-given-extension-whose-base-name-is-the-name-of-the-pare%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          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%2f520078%2ffinding-all-files-with-a-given-extension-whose-base-name-is-the-name-of-the-pare%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...