In my script I have created a list of subdirectories. How can I present this list formatted in to four columns?
i.e.
Folder1 Folder2 Folder3 Folder4
Folder5 Folder6 Folder7 Folder8
So far I have the following;
i.e.
Folder1 Folder2 Folder3 Folder4
Folder5 Folder6 Folder7 Folder8
So far I have the following;
Code:
for tmpDIR1 in `ls -l /opt/myapp | grep '^d' |awk '{print $9}'`; do
if [ -d "/opt/myapp/$tmpDIR1/app" ]; then
echo $tmpDIR1
fi
done