Edson Ahlert said the following on 08/21/03 20:25:
Ol�!!!
Suponhamos que eu tenha os seguintes arquivos:
texto1.txt
texto2.txt
texto12.txt
texto123.txt
texto1234.txt
textoabc.txt
textoabcd.txt
Como posso atrav�s de um ls ou find localizar apenas os 4 primeiros
arquivos???
"ls texto[0-9].txt" s� me mostra os 2 primeiros...
ls -1 | head -4
ls -1 | head -n 4
--
------------------------ __ o mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] Roberto Bagatini _`\<, http://www.ceat.net/~arkanon/
-=---=---==---=---=- ( )/( ) UIN# 3478930 -- LinuxUser# 102514
Lajeado - RS - Brasil ----------- Phone# +55 51 3714 4123
----------------------------------------------------------------------
---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br
Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html