The UNIX and Linux Forums  
Olá e boas-vindas de Estados Unidos para o UNIX e Linux Forum! Obrigado por visitar e fazer parte da nossa comunidade global.

Go Back   O UNIX e Linux Forum > Top Fóruns > UNIX & avançada para usuários experientes
.
google unix.com



UNIX & avançada para usuários experientes Especialista-a-Expert. Saiba avançado UNIX, comandos UNIX, Linux, Sistemas Operativos, Administração de Sistemas, Programação, Shell, shell scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Mais UNIX e Linux Fórum Tópicos Você pode achar Helpfull
Fio Thread Starter Fórum Respostas Última postagem
Ler um arquivo e escrever o nome do arquivo para um arquivo param. thebeginer UNIX & avançada para usuários experientes 1 10-05-2007 05:38
Ler ficheiros de nomes a partir de um arquivo e executar o arquivo de shell script parente anushilrai Programação Shell Script e 4 03-10-2006 05:25

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
Linkback Thread Tools Pesquisar este Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2008
ukatru ukatru is offline
Usuário
  
 

Join Date: Jul 2008
Lugares: 38
Precisa de ajuda sobre como valor a partir de um arquivo

Eu tenho um arquivo que contém os dados como below.It conatins mais dados do que eu aqui publicadas.

BEGIN DSJOB
Identifier "TestPart"
DateModified "2008/10/08"
TimeModified "00.36.32"
Identifier "RAÍZES"
DateModified "1899/12/30"
TimeModified "00.00.01"
OLEType "CJobDefn"
Readonly "0"
Nome "Test"
NextID "1"
Contentor "V0"
JobVersion "50.0.0"
ControlAfterSubr "0"
MetaBag "CMetaProperty"
BEGIN DSSUBRECORD
BEGIN DSJOB
Identifier "GetFile"
DateModified "2008/10/05"
Identifier "RAÍZES"
DateModified "1899/12/30"
TimeModified "00.00.01"
OLEType "CJobDefn"
Readonly "0"
Nome "Test"
NextID "1"
Contentor "V0"
JobVersion "50.0.0"
ControlAfterSubr "0"
MetaBag "CMetaProperty"
BEGIN DSSUBRECORD
BEGIN DSJOB
Identifier "TrimFields"
DateModified "2008/10/05"
Identifier "RAÍZES"
DateModified "1899/12/30"
TimeModified "00.00.01"
OLEType "CJobDefn"
Readonly "0"
Nome "Test"
NextID "1"
Contentor "V0"
JobVersion "50.0.0"
ControlAfterSubr "0"
MetaBag "CMetaProperty"
BEGIN DSSUBRECORD
BEGIN DSJOB
Identifier "ConvertDate"
DateModified "2008/10/05"
Identifier "RAÍZES"
DateModified "1899/12/30"
TimeModified "00.00.01"
OLEType "CJobDefn"
Readonly "0"
Nome "Test"
NextID "1"
Contentor "V0"
JobVersion "50.0.0"
ControlAfterSubr "0"
MetaBag "CMetaProperty"
BEGIN DSSUBRECORD
BEGIN DSJOB
Identifier "LoadTable"
DateModified "2008/10/05"
Identifier "RAÍZES"
DateModified "1899/12/30"
TimeModified "00.00.01"
OLEType "CJobDefn"
Readonly "0"
Nome "Test"
NextID "1"
Contentor "V0"
JobVersion "50.0.0"
ControlAfterSubr "0"
MetaBag "CMetaProperty"
BEGIN DSSUBRECORD
BEGIN DSJOB
Identifier "Test"
DateModified "2008/10/05"



No texto acima Preciso grep para "BEGIN DSJOB" e quando alguma vez eu achar este texto i need a linha após este texto.

Out ponha:

Identifier "TestPart"
Identifier "GetFile"
Identifier "TrimFields"
Identifier "ConvertDate"
Identifier "LoadTable"
Identifier "Test"

Por favor me dê alguma sugestão Como posso conseguir isso.

Obrigado
 

Marcadores

Thread Tools Pesquisar este Thread
Pesquisar este Thread:

Pesquisa Avançada
Display Modes Esta taxa Thread
Esta taxa Thread:

Destacamento Regimento
Você não pode postar novas threads
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar suas postagens

BB code é Ligado
Smilies são Ligado
[IMG] código é Ligado
Código HTML é Desligado
Trackbacks são Ligado
Pingbacks são Ligado
Refbacks são Ligado




Todos os horários são GMT -4. A hora é agora 04:06.


Powered by: vBulletinCopyright © 2000 - 2006, Jelsoft Enterprises Limited. Língua Traduções Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
O UNIX e Linux Fóruns Content Copyright © 1993-2009. Todos os Direitos Reserved.Ad Gestão por RedTyger

Content Relevant URLs por vBSEO 3.2.0