
Ram-Z
New User
Aug 10, 2009, 2:42 PM
Post #1 of 2
(4538 views)
|
Matching a special character at begining of line
|
Can't Post
|
|
Hi, I'm having some trouble with removing a bunch of '+' at the beginning of a string. I'm using the linux bash command 'rename' which uses pearl regex. Basically I have some files: +foo+bar.txt foo+bar.txt where I want to remove the + in front and replace any + in the middle with a space. I tried to remove the first + with: and but everything returns:
Unknown option: e Unknown option: e Unknown option: e Usage: rename [-v] [-n] [-f] perlexpr [filenames] with "e" being the first letter after the + of the three files starting with + Any help would be appreciated
|