IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New YAAnswer
Do this in the sh shell:

for file in $( find . -name "*help*.jsp" -print ); do sed -i.bak 's/\\///' $file; done

After you're done making sure that it did what you wanted it to do, go and remove all of your new .bak files.
-YendorMike

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759 Historical Review of Pennsylvania
New Hey that's nifty.
I haven't seen that use of for before. I would have written your solution like this:

find . -name "*help*.jsp" -print | ( while read file ; do sed -i.bak 's/\\///' $file; done )

Wade.
"Don't give up!"
New Thanks
Thanks, I had to fix to sed to escape the slashes correctly, but that was simple. It only seemed to correct one instance per line, but I just ran several times.

for file in $( find . -name "*.html" -print ); do sed -i.bak 's|\\|/|' $file; done

Jay
New Just add the "g" modifier to the sed script
That'll get every instance on a line.
-YendorMike

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759 Historical Review of Pennsylvania
     In file search and replace? - (JayMehaffey) - (8)
         I'd do something like this - (crazy)
         sed or awk - (ChrisR)
         cat filename | tr '\\\\' '/' > tmp; mv tmp filename - (tuberculosis)
         YAAnswer - (Yendor) - (3)
             Hey that's nifty. - (static)
             Thanks - (JayMehaffey) - (1)
                 Just add the "g" modifier to the sed script - (Yendor)
         Late to the party, but have you tried "tidy"? - (a6l6e6x)

This may also found a Chair at yer fav oyster bar and Chair-filling establishment.
84 ms