Results 1 to 3 of 3
Hybrid View
-
8th Jul 2010, 02:16 PM #1OPMember
Debian - command line. Replace () in filenames with _
Hi,
I've got a set of directories like this:
files\
files\a
files\b
etc...
files\z
files\0
In these directories there might be files with the following characters: ()
I need those characters replaced by underscores: _
Someone gave me the following command:
Code:find ./ -type f -exec sed -i 's/\(\)/_/' {} \;
Would anyone be able to give me the proper command?
I suck at regex..AndroidApps Reviewed by AndroidApps on . Debian - command line. Replace () in filenames with _ Hi, I've got a set of directories like this: files\ files\a files\b etc... files\z files\0 Rating: 5
-
9th Jul 2010, 12:11 AM #2Respected Member
Try this:
find ./ -type f -exec sed -i 's/\(\)/_/g' {} \;
-
9th Jul 2010, 09:30 AM #3OPMember
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Firefox 16, new Command Line toolbar
By Djlatino in forum General DiscussionReplies: 0Last Post: 11th Oct 2012, 08:04 AM -
rapidgator download from command line
By Mutikasa in forum Web Development AreaReplies: 0Last Post: 8th Apr 2012, 11:01 AM -
How to add multiple IPs with a Command line to windows server
By Novaroot in forum Tutorials and GuidesReplies: 0Last Post: 3rd Mar 2012, 04:05 AM -
how to download from filesonic on command line
By masnadiero in forum Technical Help Desk SupportReplies: 3Last Post: 28th Aug 2011, 11:56 PM -
replace a specific line in a php file
By techdaemon in forum Web Development AreaReplies: 10Last Post: 27th Sep 2010, 04:49 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...