Mass Remove File Prefix on a Mac?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







17















How do I mass remove file prefixes in a Mac? For example, inside my folder, I have the following files:



img_sometext1.jpg
img_sometext2.jpg
...
img_sometext10.jpg


How do I remove img_?










share|improve this question





























    17















    How do I mass remove file prefixes in a Mac? For example, inside my folder, I have the following files:



    img_sometext1.jpg
    img_sometext2.jpg
    ...
    img_sometext10.jpg


    How do I remove img_?










    share|improve this question

























      17












      17








      17


      2






      How do I mass remove file prefixes in a Mac? For example, inside my folder, I have the following files:



      img_sometext1.jpg
      img_sometext2.jpg
      ...
      img_sometext10.jpg


      How do I remove img_?










      share|improve this question














      How do I mass remove file prefixes in a Mac? For example, inside my folder, I have the following files:



      img_sometext1.jpg
      img_sometext2.jpg
      ...
      img_sometext10.jpg


      How do I remove img_?







      macos mac rename batch-rename






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 9 '12 at 4:13









      PropellerPropeller

      58571526




      58571526






















          4 Answers
          4






          active

          oldest

          votes


















          22














          The easiest solution might be to use the commercial A Better Finder Rename to achieve this.



          For a free alternative, you can install the command-line rename utility:




          • install Xcode

          • install Homebrew

          • open Terminal.app and do brew install rename


          You can now use, in the Terminal, either of:



          rename -d img_ *
          rename "s/^img_//" *


          to strip away the prefix.






          share|improve this answer





















          • 1





            Awesome! I already had homebrew installed and your solution worked perfectly well.

            – Propeller
            Mar 9 '12 at 5:08






          • 1





            So amazing, this is just the tool I needed

            – Tallboy
            Jul 6 '17 at 16:31











          • beautiful! How is it not easier to find brew casks such as rename?

            – David Anderton
            Jul 25 '17 at 16:13





















          9














          You can use Automator's Rename Finder Items action:




          1. Start Automator, select Workflow, and add Get Specified Finder Items and Rename Finder Items from the library on the left to the workflow area on the right by double-clicking.


          2. Drag and drop the files you want to rename to the list in Get Specified Finder Items.


          3. Change Rename Finder Items to Replace Text as desired, and click the Run button.



          Automator screenshot



          Result after execution: Result



          You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.






          share|improve this answer































            2














            If you want an elegant, easy, and feature-rich solution, I personally like Name Mangler.



            Used to be called File List and was free, now it costs $10. May be a little steep for some people, but it's well-written and extremely functional if you don't want to get into the command-line methods of doing this.






            share|improve this answer































              1














              A quick visit from the year 2019 to give an update.



              osX has something like this built into finder now.




              • Open finder


              • Select all the files you want renamed


              • From the right-click menu (or File menu) choose the Rename # items option


              • You'll be presented with a dialog window with options, one of which is Replace Text


              • Enter your prefix - "img_" in the Find box and leave the Replace box empty


              • Click Rename







              share|improve this answer
























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "3"
                };
                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
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f398709%2fmass-remove-file-prefix-on-a-mac%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                22














                The easiest solution might be to use the commercial A Better Finder Rename to achieve this.



                For a free alternative, you can install the command-line rename utility:




                • install Xcode

                • install Homebrew

                • open Terminal.app and do brew install rename


                You can now use, in the Terminal, either of:



                rename -d img_ *
                rename "s/^img_//" *


                to strip away the prefix.






                share|improve this answer





















                • 1





                  Awesome! I already had homebrew installed and your solution worked perfectly well.

                  – Propeller
                  Mar 9 '12 at 5:08






                • 1





                  So amazing, this is just the tool I needed

                  – Tallboy
                  Jul 6 '17 at 16:31











                • beautiful! How is it not easier to find brew casks such as rename?

                  – David Anderton
                  Jul 25 '17 at 16:13


















                22














                The easiest solution might be to use the commercial A Better Finder Rename to achieve this.



                For a free alternative, you can install the command-line rename utility:




                • install Xcode

                • install Homebrew

                • open Terminal.app and do brew install rename


                You can now use, in the Terminal, either of:



                rename -d img_ *
                rename "s/^img_//" *


                to strip away the prefix.






                share|improve this answer





















                • 1





                  Awesome! I already had homebrew installed and your solution worked perfectly well.

                  – Propeller
                  Mar 9 '12 at 5:08






                • 1





                  So amazing, this is just the tool I needed

                  – Tallboy
                  Jul 6 '17 at 16:31











                • beautiful! How is it not easier to find brew casks such as rename?

                  – David Anderton
                  Jul 25 '17 at 16:13
















                22












                22








                22







                The easiest solution might be to use the commercial A Better Finder Rename to achieve this.



                For a free alternative, you can install the command-line rename utility:




                • install Xcode

                • install Homebrew

                • open Terminal.app and do brew install rename


                You can now use, in the Terminal, either of:



                rename -d img_ *
                rename "s/^img_//" *


                to strip away the prefix.






                share|improve this answer















                The easiest solution might be to use the commercial A Better Finder Rename to achieve this.



                For a free alternative, you can install the command-line rename utility:




                • install Xcode

                • install Homebrew

                • open Terminal.app and do brew install rename


                You can now use, in the Terminal, either of:



                rename -d img_ *
                rename "s/^img_//" *


                to strip away the prefix.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 27 '14 at 5:13

























                answered Mar 9 '12 at 5:02









                roguesysroguesys

                2,6001114




                2,6001114








                • 1





                  Awesome! I already had homebrew installed and your solution worked perfectly well.

                  – Propeller
                  Mar 9 '12 at 5:08






                • 1





                  So amazing, this is just the tool I needed

                  – Tallboy
                  Jul 6 '17 at 16:31











                • beautiful! How is it not easier to find brew casks such as rename?

                  – David Anderton
                  Jul 25 '17 at 16:13
















                • 1





                  Awesome! I already had homebrew installed and your solution worked perfectly well.

                  – Propeller
                  Mar 9 '12 at 5:08






                • 1





                  So amazing, this is just the tool I needed

                  – Tallboy
                  Jul 6 '17 at 16:31











                • beautiful! How is it not easier to find brew casks such as rename?

                  – David Anderton
                  Jul 25 '17 at 16:13










                1




                1





                Awesome! I already had homebrew installed and your solution worked perfectly well.

                – Propeller
                Mar 9 '12 at 5:08





                Awesome! I already had homebrew installed and your solution worked perfectly well.

                – Propeller
                Mar 9 '12 at 5:08




                1




                1





                So amazing, this is just the tool I needed

                – Tallboy
                Jul 6 '17 at 16:31





                So amazing, this is just the tool I needed

                – Tallboy
                Jul 6 '17 at 16:31













                beautiful! How is it not easier to find brew casks such as rename?

                – David Anderton
                Jul 25 '17 at 16:13







                beautiful! How is it not easier to find brew casks such as rename?

                – David Anderton
                Jul 25 '17 at 16:13















                9














                You can use Automator's Rename Finder Items action:




                1. Start Automator, select Workflow, and add Get Specified Finder Items and Rename Finder Items from the library on the left to the workflow area on the right by double-clicking.


                2. Drag and drop the files you want to rename to the list in Get Specified Finder Items.


                3. Change Rename Finder Items to Replace Text as desired, and click the Run button.



                Automator screenshot



                Result after execution: Result



                You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.






                share|improve this answer




























                  9














                  You can use Automator's Rename Finder Items action:




                  1. Start Automator, select Workflow, and add Get Specified Finder Items and Rename Finder Items from the library on the left to the workflow area on the right by double-clicking.


                  2. Drag and drop the files you want to rename to the list in Get Specified Finder Items.


                  3. Change Rename Finder Items to Replace Text as desired, and click the Run button.



                  Automator screenshot



                  Result after execution: Result



                  You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.






                  share|improve this answer


























                    9












                    9








                    9







                    You can use Automator's Rename Finder Items action:




                    1. Start Automator, select Workflow, and add Get Specified Finder Items and Rename Finder Items from the library on the left to the workflow area on the right by double-clicking.


                    2. Drag and drop the files you want to rename to the list in Get Specified Finder Items.


                    3. Change Rename Finder Items to Replace Text as desired, and click the Run button.



                    Automator screenshot



                    Result after execution: Result



                    You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.






                    share|improve this answer













                    You can use Automator's Rename Finder Items action:




                    1. Start Automator, select Workflow, and add Get Specified Finder Items and Rename Finder Items from the library on the left to the workflow area on the right by double-clicking.


                    2. Drag and drop the files you want to rename to the list in Get Specified Finder Items.


                    3. Change Rename Finder Items to Replace Text as desired, and click the Run button.



                    Automator screenshot



                    Result after execution: Result



                    You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jul 14 '12 at 15:26









                    Daniel BeckDaniel Beck

                    93.5k12236288




                    93.5k12236288























                        2














                        If you want an elegant, easy, and feature-rich solution, I personally like Name Mangler.



                        Used to be called File List and was free, now it costs $10. May be a little steep for some people, but it's well-written and extremely functional if you don't want to get into the command-line methods of doing this.






                        share|improve this answer




























                          2














                          If you want an elegant, easy, and feature-rich solution, I personally like Name Mangler.



                          Used to be called File List and was free, now it costs $10. May be a little steep for some people, but it's well-written and extremely functional if you don't want to get into the command-line methods of doing this.






                          share|improve this answer


























                            2












                            2








                            2







                            If you want an elegant, easy, and feature-rich solution, I personally like Name Mangler.



                            Used to be called File List and was free, now it costs $10. May be a little steep for some people, but it's well-written and extremely functional if you don't want to get into the command-line methods of doing this.






                            share|improve this answer













                            If you want an elegant, easy, and feature-rich solution, I personally like Name Mangler.



                            Used to be called File List and was free, now it costs $10. May be a little steep for some people, but it's well-written and extremely functional if you don't want to get into the command-line methods of doing this.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 9 '12 at 4:58









                            NReilinghNReilingh

                            5,05422046




                            5,05422046























                                1














                                A quick visit from the year 2019 to give an update.



                                osX has something like this built into finder now.




                                • Open finder


                                • Select all the files you want renamed


                                • From the right-click menu (or File menu) choose the Rename # items option


                                • You'll be presented with a dialog window with options, one of which is Replace Text


                                • Enter your prefix - "img_" in the Find box and leave the Replace box empty


                                • Click Rename







                                share|improve this answer




























                                  1














                                  A quick visit from the year 2019 to give an update.



                                  osX has something like this built into finder now.




                                  • Open finder


                                  • Select all the files you want renamed


                                  • From the right-click menu (or File menu) choose the Rename # items option


                                  • You'll be presented with a dialog window with options, one of which is Replace Text


                                  • Enter your prefix - "img_" in the Find box and leave the Replace box empty


                                  • Click Rename







                                  share|improve this answer


























                                    1












                                    1








                                    1







                                    A quick visit from the year 2019 to give an update.



                                    osX has something like this built into finder now.




                                    • Open finder


                                    • Select all the files you want renamed


                                    • From the right-click menu (or File menu) choose the Rename # items option


                                    • You'll be presented with a dialog window with options, one of which is Replace Text


                                    • Enter your prefix - "img_" in the Find box and leave the Replace box empty


                                    • Click Rename







                                    share|improve this answer













                                    A quick visit from the year 2019 to give an update.



                                    osX has something like this built into finder now.




                                    • Open finder


                                    • Select all the files you want renamed


                                    • From the right-click menu (or File menu) choose the Rename # items option


                                    • You'll be presented with a dialog window with options, one of which is Replace Text


                                    • Enter your prefix - "img_" in the Find box and leave the Replace box empty


                                    • Click Rename








                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jan 31 at 19:05









                                    tbernardtbernard

                                    1112




                                    1112






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Super User!


                                        • 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%2fsuperuser.com%2fquestions%2f398709%2fmass-remove-file-prefix-on-a-mac%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

                                        Plaza Victoria

                                        In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                                        How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...