percorrer directoria shell script 1

percorrer directoria shell script

for d in */ ; do
    echo "$d"
done

Here is what the above code is Doing:
1. The first line is a comment.
2. The second line is a for loop.
3. The third line is a command that will be executed for each item in the list.
4. The fourth line is the list.
5. The fifth line is the done statement, which indicates the end of the for loop.

Similar Posts