|
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
[Prev in Thread] | Current Thread | [Next in Thread] |