I know you can use the find command for this simple job, but I got an assignment not to use find or ls and do the job. How can I do th
find
ls
Like Mark Byers said you can use echo * to get a list of all files in the current directory.
echo *
The test or [] command/builtin has an option to test if a file is a directory.
test
[]
Apply recursion and you're done.