* Edauth usage (help - newbie)
@ 2002-12-12 14:21 Martin Brodie
2002-12-12 15:05 ` John Ferlan
0 siblings, 1 reply; 4+ messages in thread
From: Martin Brodie @ 2002-12-12 14:21 UTC (permalink / raw)
How do I really use edauth?
when I perform
# edauth -dd default
I get the following 2 lines below. I guess this is a line editor I am
in, but what commands do I use here.
"/tmp/edaBIguCe" 20 lines, 964 characters
:
I would like to make changes so that for example...
u_exp=15638400
and
u_minlen#8
I guess I need to utilize 'sed' but don't know how to.
Thanks for explanations.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Edauth usage (help - newbie)
2002-12-12 14:21 Edauth usage (help - newbie) Martin Brodie
@ 2002-12-12 15:05 ` John Ferlan
2002-12-13 13:40 ` Martin Brodie
2002-12-14 7:09 ` Robert Katz
0 siblings, 2 replies; 4+ messages in thread
From: John Ferlan @ 2002-12-12 15:05 UTC (permalink / raw)
You're in the default shell editor...
edauth honors the EDITOR environment variable..
EDITOR=/usr/bin/vi;export EDITOR
edauth -dd default
will dump you into vi
on the command line it'd be (assuming u_minlen was say 5 in the current
entry)
edauth -g -dd default | sed 's/:u_minlen#5:/:u_minlen#8:/g' | edauth -s -dd
Martin Brodie wrote:
>How do I really use edauth?
>
>when I perform
>
> # edauth -dd default
>
>I get the following 2 lines below. I guess this is a line editor I am
>in, but what commands do I use here.
>
> "/tmp/edaBIguCe" 20 lines, 964 characters
> :
>
>I would like to make changes so that for example...
>
> u_exp=15638400
>and
> u_minlen#8
>
>I guess I need to utilize 'sed' but don't know how to.
>
>
>Thanks for explanations.
>
--
John Ferlan
Tru64 UNIX Security
Hewlett-Packard Company
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Edauth usage (help - newbie)
2002-12-12 15:05 ` John Ferlan
@ 2002-12-13 13:40 ` Martin Brodie
2002-12-14 7:09 ` Robert Katz
1 sibling, 0 replies; 4+ messages in thread
From: Martin Brodie @ 2002-12-13 13:40 UTC (permalink / raw)
Thanks John, this works a treat. I am quite familiar with vi so this is a breeze.
:-)
John Ferlan <John.Ferlan@hp.com> wrote in message news:<3DF8A5C8.4070308@hp.com>...
> You're in the default shell editor...
>
> edauth honors the EDITOR environment variable..
>
> EDITOR=/usr/bin/vi;export EDITOR
> edauth -dd default
>
> will dump you into vi
>
>
> on the command line it'd be (assuming u_minlen was say 5 in the current
> entry)
>
> edauth -g -dd default | sed 's/:u_minlen#5:/:u_minlen#8:/g' | edauth -s -dd
>
> Martin Brodie wrote:
>
> >How do I really use edauth?
> >
> >when I perform
> >
> > # edauth -dd default
> >
> >I get the following 2 lines below. I guess this is a line editor I am
> >in, but what commands do I use here.
> >
> > "/tmp/edaBIguCe" 20 lines, 964 characters
> > :
> >
> >I would like to make changes so that for example...
> >
> > u_exp=15638400
> >and
> > u_minlen#8
> >
> >I guess I need to utilize 'sed' but don't know how to.
> >
> >
> >Thanks for explanations.
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Edauth usage (help - newbie)
2002-12-12 15:05 ` John Ferlan
2002-12-13 13:40 ` Martin Brodie
@ 2002-12-14 7:09 ` Robert Katz
1 sibling, 0 replies; 4+ messages in thread
From: Robert Katz @ 2002-12-14 7:09 UTC (permalink / raw)
John Ferlan wrote:
> You're in the default shell editor...
>
> edauth honors the EDITOR environment variable..
>
> EDITOR=/usr/bin/vi;export EDITOR
> edauth -dd default
>
> will dump you into vi
>
>
> on the command line it'd be (assuming u_minlen was say 5 in the current
> entry)
>
> edauth -g -dd default | sed 's/:u_minlen#5:/:u_minlen#8:/g' | edauth -s -dd
>
> Martin Brodie wrote:
>
>> How do I really use edauth?
>>
>> when I perform
>> # edauth -dd default
>>
>> I get the following 2 lines below. I guess this is a line editor I am
>> in, but what commands do I use here.
>>
>> "/tmp/edaBIguCe" 20 lines, 964 characters
>> :
>>
The colon (:) represents the prompt from `ex', the default EDITOR for
edauth.
All you have to do is
:1vi
and you'll switch from ex (line mode) to vi (visual mode). The 1 brings
you to the top of the file. ex and vi are two of the five hard links to
the same inode.
[ . . . ]
--
Regards,
---Robert
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-14 7:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 14:21 Edauth usage (help - newbie) Martin Brodie
2002-12-12 15:05 ` John Ferlan
2002-12-13 13:40 ` Martin Brodie
2002-12-14 7:09 ` Robert Katz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox