[YLUG] How do to substition in a file with sed or similar

Arthur Clune ajc22 at york.ac.uk
Fri Oct 27 13:49:30 BST 2006


On 27 Oct 2006, at 12:21, Ewan Mac Mahon wrote:

> With the sed 'in place' switch, this, from the man page:

That's gnu sed only though

> Also - Perl!? I know there's more than one way to do it, but this one
> doesn't involve loading a great big interpreter.

To be honest, once you start having to ask questions like this
about sh, you might as well just use a proper language to start
with. Then you only need to load the 'great big interpreter' once.

As for memory, I've just loaded perl on my mac and it's 3Mb in memory.
Who cares? These days I'd use python not perl for everything except
a one-liner though

Arthur

-- 
Dr. A. Clune, Systems Security Advisor
The  Computing Service,  University of York
ajc22 at york.ac.uk   01904 433129


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://mailman.lug.org.uk/pipermail/york/attachments/20061027/3be722ea/PGP.bin


More information about the York mailing list