shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RES: [shell-script] Apagando passwd.


From: jaugusto
Subject: Re: RES: [shell-script] Apagando passwd.
Date: Mon, 1 Apr 2002 12:07:07 -0300

Alo Julio

  Que tal em lugar de
cat ArqPWs | xargs grep -v /etc/passwd > /tmp/passwdnew

  Usar a opção -f d grep

  grep -v -f ArqPw /etc/passwd     > /tmp/passwdnew

Deve também funcionar

José Augusto



     Para:     address@hidden
     cc:
     cco: Jose NIEVIADONSKI/HBBR/HSBC
     Assunto:  RES: [shell-script] Apagando passwd.
"Julio Cezar Neves - DISB.O" <address@hidden>

01/04/2002 09:33 AM
Favor responder a shell-script           <font size=-1></font>



























Olá Bruno,
como root faça:

cat ArqPWs | xargs grep -v /etc/passwd > /tmp/passwdnew
mv -f /tmp/passwdnew /etc/passwd

[ ]s,
Julio Cezar Neves

-----Mensagem original-----
De: Bruno Bustamante [mailto:address@hidden]
Enviada em: segunda-feira, 11 de março de 2002 12:25
Para: address@hidden
Assunto: [shell-script] Apagando passwd.


Olá amigos,


O meu problema é o seguinte, possuo um arquivo com vários usernames e
necessito criar um shell para consultar este arquivo e remover do passwd
todos esses usernames. Se alguém estiver uma idéia!

[ ]'s

-----------------------------------------------------------------
Bruno Bustamante
address@hidden
-----------------------------------------------------------------




[As partes desta mensagem que não continham texto foram removidas]


Sair da lista: address@hidden
Banco Dados:   http://www.egroups.com/group/shell-script

Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
http://br.yahoo.com/info/utos.html


Sair da lista: address@hidden
Banco Dados:   http://www.egroups.com/group/shell-script

Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
http://br.yahoo.com/info/utos.html









This message and any attachments are confidential to the ordinary user of
the e-mail address to which it was addressed and may also be privileged. If
you are not the adressee you may not copy, forward, disclose or use any
part of the message or its attachments and if you have received this
message in error, please notify the sender immediately by return e-mail and
delete it from your system.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, arrive late or contain
viruses. The sender therefore does not accept liability for any errors or
omissions in the context of this message which arise as a result of
Internet transmission.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]