D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Multi-file replace



There must be an easy way to do this . . . . 

I have >500 files where an absolute reference href="http://www needs to be 
changed to a relative reference: href="../

The string always exists on a single line, and only once in each and every 
file.

How can this be automated? (Using the command line if appropriate, otherwise 
using an app.) I used to use LiquidFX for this, so I'm looking for a Linux 
solution.

-- 

Neil Williams
#-#-#-#-#-#-#-#-#
linux@xxxxxxxxxxxxxx
neil@xxxxxxxxxxxxxx
neil@xxxxxxxxxxxx
www.codehelp.co.uk


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly