Hello I have some confusion.
when I do this I am suppose to get a value for the variable a. And before this code I wrote typeset -i a=0Code:wc -l ${list[$y]} | a= cut -d ' ' -f1a=$a+0 echo "$a --test a"
yet when I'm suppose to get a certain value I;'m always getting 0. Does anyone know why?
Thanks
edit* list array contains files. the wc command works because it lists the number of lines plus the file name but when I use cut and get the first number and assign it to a i'm still getting 0.
Bookmarks