I am a newbie in Unix. I have a requirement in which I have to put the output of find statement in array because later in the script I have to use the output lines one by one. My find statement will retrieve me the location of directories based on the condition.
Here are the find statements:
find blah -mindepth 3 -maxdepth 3 -type d -regex ".*/V[0-9]+/wsdls+"
i=0 for file in "${array[@]}" do echo "${file}" let i++ done but here the strange thing is after executing this though i am able to see data properly but in every line it's saying i++ is not a valida command..and as soon as i removed the i++, then it gave me the data properly..my question is how it is happening as we are not increasing the value of i..
– Ankit Apr 20 '11 at 12:10