I have problem with my for cycle, this is what I want:
for arg do array[index]=(`find $arg -type l -maxdepth $depth -printf "%p\n" `) index++ done fi
arg - positional arguments, only directories
This cycle go through the arguments and finds symbolic links and I want them to be stored in an array. If I run script with only one directory it works okay, but when I enter two or more directories it does not work. Any help ?
I want to work it like this, for example:
There are two arguments, each one is directory.
Cycle first set arg to first directory and then array is filled with symbolic links for example it will find 2 symbolic links so array array will be that links and then it should continue with second arg and there are for example 3 symbolic links and it should set them to array array array