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

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

Re: [shell-script] problemas.. . adição de linha em 156 arq...


From: Alexandre de Abreu
Subject: Re: [shell-script] problemas.. . adição de linha em 156 arq...
Date: Fri, 13 May 2005 16:50:06 -0300

Olá,

Segue uma solução:

LINE="nova linha"

for f in `find /dir -name "*.html" -type f`; do
    temp=`mktemp`;
    echo $LINE > $temp
    cat $f >> $temp
    cat $temp > $f
    rm -f $temp
done


-- 
Alexandre de Abreu
GCUX, RHCE, LPIC-2


reply via email to

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