[Prev][Next][Index][Thread]
Re: a sed question...
try: sed -e 's/.html/.htm/g'
-->> The "g" at the end.
and note "." stands for any char in regxp, so the correct syntax would
be: sed -e 's/\.html/.htm/g'
Regards,
Yossi A.
>>>>> "at" == at work <Ira> writes:
at> moving an entire tree of a website from .html to .htm, using foreach, I am
at> trying to inject each file through such a commandline:
at> cat 129.html | sed -e 'sg/.html/.htm/' > 129.htm
at> i.e. changing the filename and the links inside at the same time.
at> anyone has an idea why I get "sed: Unexpected End-of-file" on this? all
at> the *.htm files are just opened and not even the first line is written...
at> all are 0 bytes long.
References: