Re: [CentOS] bash script reading directory with while and do

2014-05-26 Thread Alberto Varesio
Hi you are overwriting the PATH env variable. change PATH to CLIPATH and all will work On Sun, May 25, 2014 at 12:08 PM, Paolo De Michele wrote: > hi everyone, > > I'm searching to do a functionally bash script for copy many file inside > in a directory > the scenario is: > > root path= /var/www

Re: [CentOS] bash script reading directory with while and do

2014-05-28 Thread Alberto Varesio
Yes! PATH should be a reserved name, NOT to be used as a variable in scripts. btw, what errors do you get running the script ? On Tue, May 27, 2014 at 11:44 PM, Darr247 wrote: > On 26 May 2014 @09:12 zulu, Alberto Varesio wrote: > > you are overwriting the PATH env variable. > &