[Nottingham] A little scripting on a Sunday evening (help please)

Joshua Lock incandescant at gmail.com
Sun Apr 9 20:04:24 BST 2006


On 9 Apr 2006, at 19:49, Roger Light wrote:
> On 09/04/06, Michael Simms <michael at tuxgames.com> wrote:
>
>> cat $1 | sed -e "s/\.html/\.php/g" > /tmp/fixing
>> mv /tmp/fixing $1
>
> If you've got a decent sed (gnu sed is fine, sun sed ain't, you should
> be able to do

I don't think I have a decent sed

"sed: -i may not be used with stdin"

> sed -i $1 "s/\.html/\.php/g"
>
> -i does editing in place of a file.
>
> Thanks,

Thanks to you too!

>
> Roger
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham




More information about the Nottingham mailing list