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

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

RES: [shell-script] listar arquivos em orde


From: Renato Silveira
Subject: RES: [shell-script] listar arquivos em orde
Date: Tue, 22 Jan 2002 09:20:47 -0300

Sergio,


tente isto:

$  sort -n -ta -k 2 listabkp

Renato

> ----- Mensagem original -----
> De:           Sergio A Lima Jznior [SMTP:address@hidden]
> Enviada em:           Terça-feira, 22 de Janeiro de 2002 8:04
> Para:         address@hidden
> Assunto:              [shell-script] listar arquivos em orde
> 
> Bom dia,
> 
> preciso executar o sort de modo que liste o arquivo em ordem numerica,
> exemplo:
> 
> # sort listabkp
> linha1.tgz
> linha10.tgz
> linha11.tgz
> linha12.tgz
> linha2.tgz
> linha20.tgz
> linha21.tgz
> linha22.tgz
> linha3.tgz
> linha30.tgz
> linha31.tgz
> linha32.tgz
> linha4.tgz
> linha5.tgz
> linha6.tgz
> linha7.tgz
> linha8.tgz
> linha9.tgz
> 
> Observem que o comando não lista os arquivos em ordem correta,
> considerando que o arquivo linha10.tgz esta sendo considerado menor que o
> linha2.tgz e assim sucessivamente, alguém sabe como resolver isto.
> 
> Atenciosamente,
> 
> ==================================
> Sergio A Lima Junior
> Linux User ID. #229772
> Kernel 2.4.5 
> address@hidden
> ==================================
> 
> 
> 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 
> 


reply via email to

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