Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Newbie help with bash script to search and replace a filename
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xstep" data-source="post: 1007473" data-attributes="member: 11647"><p>The echo command pipes $dir to the sed command which does it's magic. You had "$dir" by it self which for some reason was messing me up.</p><p></p><p>The lines are separated to make it easier for me to understand. The first one undoes what I did in the find statement. The second does what your original intent was.</p><p></p><p>Do a 'man sed' to see how the -e helps us.</p></blockquote><p></p>
[QUOTE="xstep, post: 1007473, member: 11647"] The echo command pipes $dir to the sed command which does it's magic. You had "$dir" by it self which for some reason was messing me up. The lines are separated to make it easier for me to understand. The first one undoes what I did in the find statement. The second does what your original intent was. Do a 'man sed' to see how the -e helps us. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Newbie help with bash script to search and replace a filename
Top