I am writing a shell script.. given a a folder as a command line arg it will print out the names of the files/folders in it
#!/bin/sh
folder="$1"
for f in "$folder"
do
echo "$f"
done
This only prints out some the first file/folder of the given folder.