Pisvi Gabriele! On Thu, Nov 06, 2008 at 12:11:53PM +0100 you wrote:

>> Qualcosa tipo:
>> echo stringa di testo && cat myfile > myfile?
> Del tipo… ma non funzia… alla fine del comando ho myfile completamente  
> vuoto…

Bisogna passare per un file temporaneo

TMPFILE=`tempfile`
(echo "nuovastringa" && cat myfile) > $TMPFILE
mv $TMPFILE myfile

Ciao.
-- 
Massimiliano Masserelli
-------------------------------------------------------------------------------
"It's curtains for you, Mighty Mouse!  This gun is so futuristic that even
*I* don't know how it works!"
                -- from Ralph Bakshi's Mighty Mouse


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[EMAIL PROTECTED] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [EMAIL PROTECTED]

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Rispondere a