This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Pb with bash script under cygwin
- From: ydubost <yann dot dubost at capgemini dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 19 Jun 2006 04:44:33 -0700 (PDT)
- Subject: Pb with bash script under cygwin
Hello there,
I have been working on a very simple script for 3 hours not been able to
understand what's wrong with it.
So If someone can help ...
Yann.
The purpose is only to delete some files that exist in a lot of
directories/subdirectories
My script looks like:
TYPE_FIC_UPPER="._BC ._CH ._CL ._CM ._DF ._DL ._EV ._FL ._GR ._HL ._IS ._MB
._MM ._MP ._OV ._PR ._SN ._SY ._TI ._TR"
TYPE_FIC_LOWER="._bc ._ch ._cl ._cm ._df ._dl ._ev ._fl ._gr ._hl ._is ._mb
._mm ._mp ._ov ._pr ._sn ._sy ._ti ._tr"
TYPELIST=${TYPE_FIC_UPPER}" "${TYPE_FIC_LOWER}
Extension=$(echo ${TYPELIST} | sed -e's:[ ][.]:" -o -name "*.:g' | sed
-e's:^[.]:-name ":' | sed -e's:$:":')
MaCommande="find . ${Extension} -exec rm {} \; -print"
echo -e " - lancement de la commande=\n[${MaCommande}]\n" # display OK !
$(${MaCommande}) # ne fonctionne pas !
find . ${Extension} -exec rm {} \; -print # ne fonctionne pas non plus !
--
View this message in context: http://www.nabble.com/Pb-with-bash-script-under-cygwin-t1810878.html#a4934908
Sent from the Cygwin Users forum at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/