1

Listing the files in a directory

view story
linux-howto

http://www.unix.com – Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: A script that takes any number of directories as command line arguments and then lists the contents of each of these directories. The script should output each directory name prior to listing the files within that directory 2. Relevant commands, code, scripts, algorithms: Code: No of dir = $# count=1 If [ count -le $# ] then; echo ${$count} ls –ltr ${$count}/ count = `expr count + 1` fi 3. The attemp (HowTos)