asha te bazezi pe timestamp-ul fishierului, daca da~ cineva touch *
in directorul tau ai pus-o :p dece mai ai YYYYMMDD daca nu le folosesti ?

On Thu, Aug 02, 2001 at 11:46:01AM +0200, Radu Popa wrote:
 > 
 > multam fain... prefer varianta ta pentru ca nu foloseste sed; multumesc
 > oricum si lui Catalin
 > 
 > -----Original Message-----
 > From: Vasiliu Constantin [mailto:[EMAIL PROTECTED]]
 > Sent: Thursday, August 02, 2001 10:36 AM
 > To: [EMAIL PROTECTED]
 > Subject: [rlug] Re: [newbie] shell script
 > 
 > 
 > 
 > Radu Popa wrote:
 > > 
 > > Trebuie sa fac un script care sa citeasca numele unor fisiere (de gen
 > > XXXXXXXYYYYMMDD; ceva+data) si sa puna intr-o variabila numele celui mai
 > > actual fisier. Dintr-un limbaj de programare ma descurc, dar din shell...
 > > 
 > file_name=`ls -tr|/usr/bin/tail -2`
 > (... ar trebui -1 dar nu stiu de ce nu merge !!!)
 > -- 
 > +---------------------------------+-----------------------------------+
 > | Constantin Vasiliu              |    StipoSoft System Administrator |
 > | [EMAIL PROTECTED]          |    Linux Registered User #166419  |
 > +- tel:031/610215 ----------------+------------------ fax:031/610017 -+
 > ---
 > Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
 > unsubscribe from this list.
 > ---
 > Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
 > unsubscribe from this list.

-- 
 Catalin Muresan
 ASTRAL TELECOM
 Internet Department
 CM8697-RIPE, CM1206-ROTLD
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui