Re: updating a unix file through metacard

Clark Parsons ((no email))
Wed, 30 Jun 93 8:04:58 MDT

6/30/93

Hello...

> Subject: updating a unix file through metacard
> Status: RO
>
> Is there a way to update a file through MetaCard. Do you make the changes
> first then close the file or do you do it antoher way.
>

Here are a couple ways to update a file using MetaCard.

1) Edit the file from MetaCard, but outside of a MetaCard stack.
(use the MetaCard "shell" command to perform any UNIX editing you
normally execute from the command line; this might involve "sed"
commands, for instance)

2) Edit the file inside a MetaCard stack.
(open a file for update; read that file into a MetaCard field;
use MetaCard commands to make edits to that field; write that
field back to the original file; close the file)

--
Sincerely,

Clark Parsons Learning Products Engineer Hewlett-Packard Company Fort Collins, Colorado USA clarkp@fc.hp.com 1-229-3323