Re: Bash script
On Sun, 24 Oct 2004 21:02:31 +0200
Mattia Dongili <dongiliREM@OVEsupereva.it> wrote:
> On Sun, Oct 24, 2004 at 08:23:24PM +0200, Lorenzo Giuliani wrote:
> > Salve a tutti,
> > vorrei eseguire ricorsivamente questo comando:
> > export $PWD=`pwd`; lha c `basename $PWD`.lha *.adf ; rm -v *.adf
[snip]
> boh, qualcosa tipo
>
> for i in * ; do if [ -d "$i" ] ; then cd "$i"; lha c "$i".lha *.adf ;
> rm -v *.adf ; cd .. ; fi ; done
scusate, forse non ho capito, ma un bel find ?
tipo:
find . -name "*.adf" -exec rm {} \;
?
--
:: BelGaraTH ::
Reply to: