Search
Search titles only
By:
Search titles only
By:
Forums
New posts
Search forums
What's new
New posts
Latest activity
Feedback
View Statistics
Members
Current visitors
Buy Sell Trade
WTB
Log in
Register
Search
Search titles only
By:
Search titles only
By:
New posts
Search forums
Menu
Install the app
Install
Reply to thread
Forums
Technology
Computer Software
how to remove characters between square brackets of file names.
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
.
Message
<blockquote data-quote="enthusiast29" data-source="post: 2371152" data-attributes="member: 86432"><p>Same thing, but before rename operation you need to extract the value of ${x// \[*\]/} to a variable like NEW_NAME and do</p><p></p><p>[CODE=bash]find . -name $NEW_NAME[/CODE]</p><p></p><p>If you get results then that means you have a duplicate. If so then just append an underscore and number to it. You can keep count in another variable if reoccurrences are too many.</p></blockquote><p></p>
[QUOTE="enthusiast29, post: 2371152, member: 86432"] Same thing, but before rename operation you need to extract the value of ${x// \[*\]/} to a variable like NEW_NAME and do [CODE=bash]find . -name $NEW_NAME[/CODE] If you get results then that means you have a duplicate. If so then just append an underscore and number to it. You can keep count in another variable if reoccurrences are too many. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Technology
Computer Software
how to remove characters between square brackets of file names.
Top
Bottom