How do I find all files that end with a dotFind all files on the filesystem that I have edited or createdHow to find all the files related to a software?Find all files modified by a specific userHow to recover files lost in Xubuntu installation?Cant delete folders with files in it:Find all files with specific extensions that contains a stringHow to remove files with no permission?How to delete all ._ files?Delete all files with a patternHow to clear all files in a folder ending with `.log`?

Travelling outside the UK without a passport

Count the occurrence of each unique word in the file

What does chmod -u do?

What should you do when eye contact makes your subordinate uncomfortable?

How to bake one texture for one mesh with multiple textures blender 2.8

Where does the bonus feat in the cleric starting package come from?

Did Swami Prabhupada reject Advaita?

What was this official D&D 3.5e Lovecraft-flavored rulebook?

Why electric field inside a cavity of a non-conducting sphere not zero?

Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

Lowest total scrabble score

2.8 Why are collections grayed out? How can I open them?

Are the IPv6 address space and IPv4 address space completely disjoint?

"Spoil" vs "Ruin"

How do you make your own symbol when Detexify fails?

The IT department bottlenecks progress. How should I handle this?

Added a new user on Ubuntu, set password not working?

Is there a name for this algorithm to calculate the concentration of a mixture of two solutions containing the same solute?

Redundant comparison & "if" before assignment

Why can Carol Danvers change her suit colours in the first place?

How do I find all files that end with a dot

C++ debug/print custom type with GDB : the case of nlohmann json library

Pre-mixing cryogenic fuels and using only one fuel tank



How do I find all files that end with a dot


Find all files on the filesystem that I have edited or createdHow to find all the files related to a software?Find all files modified by a specific userHow to recover files lost in Xubuntu installation?Cant delete folders with files in it:Find all files with specific extensions that contains a stringHow to remove files with no permission?How to delete all ._ files?Delete all files with a patternHow to clear all files in a folder ending with `.log`?













1















How do I find all files that end with a "." (dot) and then delete them? Is there a program that can do this?



Example:



Desktop DB.
mp600osxpd542ej7.










share|improve this question







New contributor




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




















  • find -name *. -delete maybe

    – guiverc
    3 hours ago











  • I would to list the files first so that I don't delete something that I want to keep.

    – Kathryn Trucano
    3 hours ago











  • I would never run a command like that first time with a -delete option; run it without the delete so it just finds the files, and you can peruse the files it will delete, then only when happy add the -delete option). find finds files by name, date, permissions or anything, but you can also tell it to execute something for each file, delete them etc. It's a standard *nix command from 1978

    – guiverc
    3 hours ago












  • Do you need this to delete plain files only - or directories as well? does it need to be recursive or just files at one directory level?

    – steeldriver
    3 hours ago















1















How do I find all files that end with a "." (dot) and then delete them? Is there a program that can do this?



Example:



Desktop DB.
mp600osxpd542ej7.










share|improve this question







New contributor




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




















  • find -name *. -delete maybe

    – guiverc
    3 hours ago











  • I would to list the files first so that I don't delete something that I want to keep.

    – Kathryn Trucano
    3 hours ago











  • I would never run a command like that first time with a -delete option; run it without the delete so it just finds the files, and you can peruse the files it will delete, then only when happy add the -delete option). find finds files by name, date, permissions or anything, but you can also tell it to execute something for each file, delete them etc. It's a standard *nix command from 1978

    – guiverc
    3 hours ago












  • Do you need this to delete plain files only - or directories as well? does it need to be recursive or just files at one directory level?

    – steeldriver
    3 hours ago













1












1








1








How do I find all files that end with a "." (dot) and then delete them? Is there a program that can do this?



Example:



Desktop DB.
mp600osxpd542ej7.










share|improve this question







New contributor




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












How do I find all files that end with a "." (dot) and then delete them? Is there a program that can do this?



Example:



Desktop DB.
mp600osxpd542ej7.







files






share|improve this question







New contributor




Kathryn Trucano 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




Kathryn Trucano 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






New contributor




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









asked 3 hours ago









Kathryn TrucanoKathryn Trucano

61




61




New contributor




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





New contributor





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






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












  • find -name *. -delete maybe

    – guiverc
    3 hours ago











  • I would to list the files first so that I don't delete something that I want to keep.

    – Kathryn Trucano
    3 hours ago











  • I would never run a command like that first time with a -delete option; run it without the delete so it just finds the files, and you can peruse the files it will delete, then only when happy add the -delete option). find finds files by name, date, permissions or anything, but you can also tell it to execute something for each file, delete them etc. It's a standard *nix command from 1978

    – guiverc
    3 hours ago












  • Do you need this to delete plain files only - or directories as well? does it need to be recursive or just files at one directory level?

    – steeldriver
    3 hours ago

















  • find -name *. -delete maybe

    – guiverc
    3 hours ago











  • I would to list the files first so that I don't delete something that I want to keep.

    – Kathryn Trucano
    3 hours ago











  • I would never run a command like that first time with a -delete option; run it without the delete so it just finds the files, and you can peruse the files it will delete, then only when happy add the -delete option). find finds files by name, date, permissions or anything, but you can also tell it to execute something for each file, delete them etc. It's a standard *nix command from 1978

    – guiverc
    3 hours ago












  • Do you need this to delete plain files only - or directories as well? does it need to be recursive or just files at one directory level?

    – steeldriver
    3 hours ago
















find -name *. -delete maybe

– guiverc
3 hours ago





find -name *. -delete maybe

– guiverc
3 hours ago













I would to list the files first so that I don't delete something that I want to keep.

– Kathryn Trucano
3 hours ago





I would to list the files first so that I don't delete something that I want to keep.

– Kathryn Trucano
3 hours ago













I would never run a command like that first time with a -delete option; run it without the delete so it just finds the files, and you can peruse the files it will delete, then only when happy add the -delete option). find finds files by name, date, permissions or anything, but you can also tell it to execute something for each file, delete them etc. It's a standard *nix command from 1978

– guiverc
3 hours ago






I would never run a command like that first time with a -delete option; run it without the delete so it just finds the files, and you can peruse the files it will delete, then only when happy add the -delete option). find finds files by name, date, permissions or anything, but you can also tell it to execute something for each file, delete them etc. It's a standard *nix command from 1978

– guiverc
3 hours ago














Do you need this to delete plain files only - or directories as well? does it need to be recursive or just files at one directory level?

– steeldriver
3 hours ago





Do you need this to delete plain files only - or directories as well? does it need to be recursive or just files at one directory level?

– steeldriver
3 hours ago










2 Answers
2






active

oldest

votes


















3














The following cmd will do:



find . -type f -name '*.' -exec rm -i ;


cmd explanation:




  • find: the utility we used to search for files and perform actions on them.


  • -type f:that makes sure that we find files only


  • -name '*.': that tell find to pick up files with names that match the pattern, which has a wildcard *, that matches any number of characters, followed by the dot we're looking for.

    note that we quoted the pattern, this is important to avoid the expansion of the wildcard by the shell.


  • -exec: that tells find to perform the following action on the files that have been found.


  • rm -i : the cmd rm -i removes files interactively, which means that it will ask you any time, it wants to delete a file, that's a good option if you want to check your files one by one before deletion, otherwise you can omit the option -i.

    the curly braces are placeholders for the files found by find.

  • finally we end the command executed by find with an escaped semicolon ;





share|improve this answer








New contributor




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



























    0














    find -name "*." -delete



    find will locate files named pattern '*.' (ie. end in a dot) & delete them. The use of -delete also implies -depth too, but adjust to your needs.



    Quotes added as I'd forgotten, thanks @steeldriver






    share|improve this answer
























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      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: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      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
      );



      );






      Kathryn Trucano 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%2faskubuntu.com%2fquestions%2f1128144%2fhow-do-i-find-all-files-that-end-with-a-dot%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      The following cmd will do:



      find . -type f -name '*.' -exec rm -i ;


      cmd explanation:




      • find: the utility we used to search for files and perform actions on them.


      • -type f:that makes sure that we find files only


      • -name '*.': that tell find to pick up files with names that match the pattern, which has a wildcard *, that matches any number of characters, followed by the dot we're looking for.

        note that we quoted the pattern, this is important to avoid the expansion of the wildcard by the shell.


      • -exec: that tells find to perform the following action on the files that have been found.


      • rm -i : the cmd rm -i removes files interactively, which means that it will ask you any time, it wants to delete a file, that's a good option if you want to check your files one by one before deletion, otherwise you can omit the option -i.

        the curly braces are placeholders for the files found by find.

      • finally we end the command executed by find with an escaped semicolon ;





      share|improve this answer








      New contributor




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
























        3














        The following cmd will do:



        find . -type f -name '*.' -exec rm -i ;


        cmd explanation:




        • find: the utility we used to search for files and perform actions on them.


        • -type f:that makes sure that we find files only


        • -name '*.': that tell find to pick up files with names that match the pattern, which has a wildcard *, that matches any number of characters, followed by the dot we're looking for.

          note that we quoted the pattern, this is important to avoid the expansion of the wildcard by the shell.


        • -exec: that tells find to perform the following action on the files that have been found.


        • rm -i : the cmd rm -i removes files interactively, which means that it will ask you any time, it wants to delete a file, that's a good option if you want to check your files one by one before deletion, otherwise you can omit the option -i.

          the curly braces are placeholders for the files found by find.

        • finally we end the command executed by find with an escaped semicolon ;





        share|improve this answer








        New contributor




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






















          3












          3








          3







          The following cmd will do:



          find . -type f -name '*.' -exec rm -i ;


          cmd explanation:




          • find: the utility we used to search for files and perform actions on them.


          • -type f:that makes sure that we find files only


          • -name '*.': that tell find to pick up files with names that match the pattern, which has a wildcard *, that matches any number of characters, followed by the dot we're looking for.

            note that we quoted the pattern, this is important to avoid the expansion of the wildcard by the shell.


          • -exec: that tells find to perform the following action on the files that have been found.


          • rm -i : the cmd rm -i removes files interactively, which means that it will ask you any time, it wants to delete a file, that's a good option if you want to check your files one by one before deletion, otherwise you can omit the option -i.

            the curly braces are placeholders for the files found by find.

          • finally we end the command executed by find with an escaped semicolon ;





          share|improve this answer








          New contributor




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










          The following cmd will do:



          find . -type f -name '*.' -exec rm -i ;


          cmd explanation:




          • find: the utility we used to search for files and perform actions on them.


          • -type f:that makes sure that we find files only


          • -name '*.': that tell find to pick up files with names that match the pattern, which has a wildcard *, that matches any number of characters, followed by the dot we're looking for.

            note that we quoted the pattern, this is important to avoid the expansion of the wildcard by the shell.


          • -exec: that tells find to perform the following action on the files that have been found.


          • rm -i : the cmd rm -i removes files interactively, which means that it will ask you any time, it wants to delete a file, that's a good option if you want to check your files one by one before deletion, otherwise you can omit the option -i.

            the curly braces are placeholders for the files found by find.

          • finally we end the command executed by find with an escaped semicolon ;






          share|improve this answer








          New contributor




          HElanabi 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 answer



          share|improve this answer






          New contributor




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









          answered 2 hours ago









          HElanabiHElanabi

          392




          392




          New contributor




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





          New contributor





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






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























              0














              find -name "*." -delete



              find will locate files named pattern '*.' (ie. end in a dot) & delete them. The use of -delete also implies -depth too, but adjust to your needs.



              Quotes added as I'd forgotten, thanks @steeldriver






              share|improve this answer





























                0














                find -name "*." -delete



                find will locate files named pattern '*.' (ie. end in a dot) & delete them. The use of -delete also implies -depth too, but adjust to your needs.



                Quotes added as I'd forgotten, thanks @steeldriver






                share|improve this answer



























                  0












                  0








                  0







                  find -name "*." -delete



                  find will locate files named pattern '*.' (ie. end in a dot) & delete them. The use of -delete also implies -depth too, but adjust to your needs.



                  Quotes added as I'd forgotten, thanks @steeldriver






                  share|improve this answer















                  find -name "*." -delete



                  find will locate files named pattern '*.' (ie. end in a dot) & delete them. The use of -delete also implies -depth too, but adjust to your needs.



                  Quotes added as I'd forgotten, thanks @steeldriver







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 3 hours ago

























                  answered 3 hours ago









                  guivercguiverc

                  5,02121623




                  5,02121623




















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









                      draft saved

                      draft discarded


















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












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











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














                      Thanks for contributing an answer to Ask Ubuntu!


                      • 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%2faskubuntu.com%2fquestions%2f1128144%2fhow-do-i-find-all-files-that-end-with-a-dot%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

                      Are there any AGPL-style licences that require source code modifications to be public? Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Force derivative works to be publicAre there any GPL like licenses for Apple App Store?Do you violate the GPL if you provide source code that cannot be compiled?GPL - is it distribution to use libraries in an appliance loaned to customers?Distributing App for free which uses GPL'ed codeModifications of server software under GPL, with web/CLI interfaceDoes using an AGPLv3-licensed library prevent me from dual-licensing my own source code?Can I publish only select code under GPLv3 from a private project?Is there published precedent regarding the scope of covered work that uses AGPL software?If MIT licensed code links to GPL licensed code what should be the license of the resulting binary program?If I use a public API endpoint that has its source code licensed under AGPL in my app, do I need to disclose my source?

                      2013 GY136 Descoberta | Órbita | Referências Menu de navegação«List Of Centaurs and Scattered-Disk Objects»«List of Known Trans-Neptunian Objects»

                      Button changing it's text & action. Good or terrible? The 2019 Stack Overflow Developer Survey Results Are Inchanging text on user mouseoverShould certain functions be “hard to find” for powerusers to discover?Custom liking function - do I need user login?Using different checkbox style for different checkbox behaviorBest Practices: Save and Exit in Software UIInteraction with remote validated formMore efficient UI to progress the user through a complicated process?Designing a popup notice for a gameShould bulk-editing functions be hidden until a table row is selected, or is there a better solution?Is it bad practice to disable (replace) the context menu?