Sometime just before Sunday 28 April 2002 04:30 pm Kahli R. Burke Wrote
about:[EUG-LUG:2456] Re: asynchronous file access: ? use chattr +S ?
Kahli,
        Thanks! Ill give the perl a try... Im alergic to vi, I use Emacs, but very 
little... Perl looks interesting... I was hoping for something a little less 
ugly!  I was hoping for something more like
blah -a alt=$blah title=$blah <filename(s)>  
This doenst look too bad... I can probably handle it :)
Jamie

: cat file.html | perl -ne 's/alt\s*=\s*"(.*?)"/alt="$1" title="$1"/; print'
:
: This says:  cat the file into perl, and for each line (-n option),
: evaluate (-e option) the script in the single quotes:
:
: susbstitute(s/<regex>/<replacement>/):
:     alt<optional whitespace>=<optional whitespace>"<any character in
: between the quotes, save it in $1>"...
: replace with:
:     alt="<whatever matched in the parentheses" title="<whatever matched
: in the parentheses"
:
: print the altered string (to stdout)
:
: Try it and see if it works for you... You can do the same stuff with sed
: or awk.
:
: Kahli

-- 
for setting/changing your eug-lug mailinglist subscription use this website:
http://wWw.RockSolidNetworks.com/eug-lug.html
no microsoft products were used to produce this message.

Reply via email to