for file in /Users/$USER/*; do
if [ -f "$file" ]; then
echo $file
fi
done
Enumerate directories:
for file in /usr/*; do
if [ -d "$file" ]; then
echo $file
fi
done
by Vurdalakov |
for file in /Users/$USER/*; do
if [ -f "$file" ]; then
echo $file
fi
done
for file in /usr/*; do
if [ -d "$file" ]; then
echo $file
fi
done
No comments:
Post a Comment