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

Re: e' possibile farlo in bash???



On Wed, 21 Jul 2004 (12:30), Gandu wrote:
> Cattura le prime tre righe di un file e ne costruisce il nome file.
$ read -d \000 titolo tipo data < ./testo.txt ; echo "$data.$tipo.$titolo.txt"

Ovviamente  il tuo  file _non_  potrà  contenere il  carattere \000  (il
carattere con il valore ASCII 0) che però è abbastanza improbabile.

Ciao,
Daniele                 JID: dan@jabber.linux.it (http://www.jabber.org)
-- 
and remember: respect is everything . . . . . . . . . . . free your mind

Attachment: signature.asc
Description: Digital signature


Reply to: