View Single Post
Old 04-12-2005, 12:12 AM  
INDK
Confirmed User
 
Join Date: Jan 2004
Location: Edmonton, Alberta
Posts: 75
Not quite darnoth.

USE AT YOUR OWN RISK

First, make a backup of that directory. Then edit the obviously phony (capitalized) variables in this command to your liking:

Code:
find /PATH/TO/DIRECTORY/GOES/HERE/ -type f -name "*.html" | while read f; do perl -pe 's,\</html\>,<a href="LINKGOESHERE">HYPERTEXT</a></html>,' "$f" > "$f".new; mv "$f".new "$f"; done
...will recursively scan through /www/directory/goes/here and replace </html> with <a href="LINKGOESHERE">HYPERTEXT</A> in every single HTML file in that directory. Don't run this more than once.

INDK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote