Mass Remove File Prefix on a Mac?
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
add a comment |
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
add a comment |
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
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
macos mac rename batch-rename
asked Mar 9 '12 at 4:13
PropellerPropeller
58071526
58071526
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
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.
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 asrename
?
– David Anderton
Jul 25 '17 at 16:13
add a comment |
You can use Automator's Rename Finder Items action:
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.
Drag and drop the files you want to rename to the list in Get Specified Finder Items.
Change Rename Finder Items to Replace Text as desired, and click the Run button.
Result after execution:
You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.
add a comment |
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.
add a comment |
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
optionYou'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 theReplace
box emptyClick Rename
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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 asrename
?
– David Anderton
Jul 25 '17 at 16:13
add a comment |
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.
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 asrename
?
– David Anderton
Jul 25 '17 at 16:13
add a comment |
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.
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.
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 asrename
?
– David Anderton
Jul 25 '17 at 16:13
add a comment |
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 asrename
?
– 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
add a comment |
You can use Automator's Rename Finder Items action:
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.
Drag and drop the files you want to rename to the list in Get Specified Finder Items.
Change Rename Finder Items to Replace Text as desired, and click the Run button.
Result after execution:
You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.
add a comment |
You can use Automator's Rename Finder Items action:
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.
Drag and drop the files you want to rename to the list in Get Specified Finder Items.
Change Rename Finder Items to Replace Text as desired, and click the Run button.
Result after execution:
You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.
add a comment |
You can use Automator's Rename Finder Items action:
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.
Drag and drop the files you want to rename to the list in Get Specified Finder Items.
Change Rename Finder Items to Replace Text as desired, and click the Run button.
Result after execution:
You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.
You can use Automator's Rename Finder Items action:
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.
Drag and drop the files you want to rename to the list in Get Specified Finder Items.
Change Rename Finder Items to Replace Text as desired, and click the Run button.
Result after execution:
You can easily change this workflow to make it repeatable, e.g. with selected Finder items instead, and save it as Application or Service.
answered Jul 14 '12 at 15:26
Daniel Beck♦Daniel Beck
92.9k12234287
92.9k12234287
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 9 '12 at 4:58
NReilinghNReilingh
5,05422046
5,05422046
add a comment |
add a comment |
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
optionYou'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 theReplace
box emptyClick Rename
add a comment |
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
optionYou'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 theReplace
box emptyClick Rename
add a comment |
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
optionYou'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 theReplace
box emptyClick Rename
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
optionYou'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 theReplace
box emptyClick Rename
answered Jan 31 at 19:05
tbernardtbernard
1112
1112
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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