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 I'd do something like this
If it was multiple directories of stuff:

find . -name "*htm" -exec fix.pl {} \\;

Where fix.pl was:

#!/usr/bin/perl -w -pi.old
s{\\\\}{/}g;

Note - it could all be done on a single command line but I rarely use it that way so it doesn't fly off my fingers.
Collapse Edited by crazy Dec. 9, 2006, 10:31:01 PM EST
I'd do something like this
If it was multiple directories of stuff:

find . -name "*htm" -exec fix.pl {} \;

Where fix.pl was:

#!/usr/bin/perl -w -pi.old
s{\\}{/}g;

Note - it could all be sone on a single command line but I rarely use it that way so it doesn't fly off my fingers.
     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)

link lrpdism
64 ms