So ive coded before but not too in depth. We have been working on assignments which I have figured out but this is my first using BASH to write scripts in Linux. my professor gave us this code:
#!/bin/sh
cd /tmp
var=`/bin/ls`
for a in $var
do
if [ -f $a ]
then
/bin/ls -l $a
else
/bin/ls -ld $a
fi
done
but i am still confused on what it even means.... any help?