Crash on entery of map

Talk about your new mod or map here

Moderators: jelco, bert_the_turtle

User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Wed Aug 23, 2006 10:56 pm

nihilesthetics2 wrote:um, with 'find' and 'sed', you could have done it in a minute. But, well, whatever works for you. I suppose I should actually finish a proper mod before I start criticizing

N2

I was actually using grep, as I am not really sure how to use find+sed. My knowledge of the command line is minimal.

xander
nihilesthetics2
level2
level2
Posts: 101
Joined: Mon Dec 12, 2005 11:18 pm

Postby nihilesthetics2 » Thu Aug 24, 2006 12:43 am

something like

Code: Select all

for f in `find . -type f -exec grep -l anihil {} \;`; do sed 's/anihil/annihil/g' $f > /tmp/$f; mv /tmp/$f  $f; done


Surely the best part about the Mac is the UNIX ?

N2
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Thu Aug 24, 2006 3:42 am

nihilesthetics2 wrote:something like

Code: Select all

for f in `find . -type f -exec grep -l anihil {} \;`; do sed 's/anihil/annihil/g' $f > /tmp/$f; mv /tmp/$f  $f; done


Surely the best part about the Mac is the UNIX ?

N2

Probably, but I don't understand more than half of what you have written :)

xander

Return to “Mod Projects”

Who is online

Users browsing this forum: No registered users and 3 guests