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

Welcome to IWETHEY!

New cat filename | tr '\\\\' '/' > tmp; mv tmp filename
Now stick it in a loop like

for n in `find . -name "*html"`
do
cat $n | tr '\\' '/' > tmp; mv tmp $n
done

Those other tools are overkill for this kind of thing.
tr is a much underused utility



[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
Collapse Edited by tuberculosis Dec. 10, 2006, 12:48:10 AM EST
cat filename | tr '\\' '/' > tmp; mv tmp filename
Now stick it in a loop like

for n in `find . -name "*html"`
do
cat $n | tr '\' '/' > tmp; mv tmp $n
done

tr is a much underused utility



[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
     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)

The Elvish prince was so powerful and legendary that his first name alone contained over twenty apostrophes.
69 ms