Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: one for the linux guru's

date posted 16th April 2005 15:21

Sorry, that should have read:

find . -name "*.html" | xargs sed 's/alt="\(.*\)"/alt="\1"
title="\1"/g' --in-place

Graham

> Craig,
>
> > Hey All
> >
> > I was just wondering if anyone new of a tool.. or possible even a linux
> > command that could be used to add "title" properties to a tag wherever
> > there is a "alt" property.. for example:
> >
> >
> > would become:
> Try this:
>
> find . -name "*.html" | xargs sed 's/alt="\(.*\)"/alt="\1"
> title="\1"/g' target1 --in-place
>
> (all on one line). Replace *.html with whatever identifies your files
> and the leading "." with the path of your directory.
>
> Back up first!
>
> Graham
>
> > > an image of an elephant">
> >
> > I have a feeling that some kind of regex could be used for this but
> > regex is still mystery to me..
> >
> > I have a plugin for DW that can do this on a per page basis.. but the
> > site I am working on currently has over 500 pages.. and it's getting
> > bigger.. so was wondering if there was a way to do this recursively
> > through a directory.
> >
> > Thanks for any ideas!
> >
> > Craig
> --
> Graham Stark, Virtual Worlds
> phone: (+044) 01908 618239 mobile: 07952 633185
> Homepage http://www.virtual-worlds.biz/people/graham_s
> Virtual Chancellor http://www.virtual-worlds.biz/vwc
--
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
Homepage http://www.virtual-worlds.biz/people/graham_s
Virtual Chancellor http://www.virtual-worlds.biz/vwc



Messages by Day
April 30th 2005
April 29th 2005
April 28th 2005
April 27th 2005
April 26th 2005
April 25th 2005
April 24th 2005
April 23rd 2005
April 22nd 2005
April 21st 2005
April 20th 2005
April 19th 2005
April 18th 2005
April 17th 2005
April 16th 2005
April 15th 2005
April 14th 2005
April 13th 2005
April 12th 2005
April 11th 2005
April 10th 2005
April 9th 2005
April 8th 2005
April 7th 2005
April 6th 2005
April 5th 2005
April 4th 2005
April 3rd 2005
April 2nd 2005
April 1st 2005


Messages by Month
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005


Messages by Year
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000