>When I execute your lsnums ... nothing happens... tried giving it a >string of arguments (some letters, some numbers) but nothing happened. >also tried continuing input via stdin on multiple lines with no effect >...finally used ctl d to terminate stfin .. still nothing. >For lsfiles, if I give it a number of different file names as the >arguments to lsfiles, it simply lists the file names back and does not >find another file in my working directory that contains the name of one >of the files listed as arguments... ?? >> xxxxxx at kenner> pwd >> /green/homes/xxxxxx/cs494/lab1 >> xxxxxx at kenner> pwd >> /green/homes/xxxxxx/cs494/lab1 >> xxxxxx at kenner> ls -lai >> total 48 >> 364713 drwxr-x--- 2 xxxxxx graduate 512 Jun 17 09:00 ./ >> 45757 drwxr-x--- 3 xxxxxx graduate 1024 Jun 17 05:44 ../ >> 364865 -rw-r----- 1 xxxxxx graduate 71 Jun 16 22:47 1.file >> 364867 -rw-r----- 1 xxxxxx graduate 71 Jun 16 22:48 2.file >> 364868 -rw-r----- 1 xxxxxx graduate 71 Jun 16 22:49 3.file >> 365013 -rw-r----- 1 xxxxxx graduate 7 Jun 17 09:00 4.file >> 364864 -rwxr-x--- 1 xxxxxx graduate 4980 Jun 17 06:22 counter* >> 364884 -rw-r----- 1 xxxxxx graduate 118 Jun 17 06:22 counter.c >> 365003 -rwxr-x--- 1 xxxxxx graduate 4808 Jun 17 06:25 forever* >> 364885 -rw-r----- 1 xxxxxx graduate 44 Jun 17 06:25 forever.c >> 365011 lrwxrwxrwx 1 xxxxxx graduate 42 Jun 17 08:52 lsfiles -> /lymon/homes/cs494/labs/Sh/programs/lsfi >> les* >> 365012 lrwxrwxrwx 1 xxxxxx graduate 41 Jun 17 08:53 lsnums -> /lymon/homes/cs494/labs/Sh/programs/lsnum >> s* >> 365007 -rwxr-x--- 1 xxxxxx graduate 361 Jun 17 08:39 revarg* >> 365008 -rwxr-x--- 1 xxxxxx graduate 563 Jun 17 08:39 sortfl* >> 365006 -rwxr-x--- 1 xxxxxx graduate 376 Jun 17 08:39 square* >> 365005 -rwxr-x--- 1 xxxxxx graduate 600 Jun 17 08:38 timex* >> xxxxxx at kenner> lsnums 1 One 2 Two >> (NOTE: Entered ctl D) >> xxxxxx at kenner> >> xxxxxx at kenner> cat 4.file >> 1.file >> xxxxxx at kenner> lsfiles 1.file 2.file 3.file >> 1.file >> 2.file >> 3.file >> xxxxxx at kenner> > The above is correct behavior. Reread the descriptions. Try the following. (on kenner) UNIX> cd /lymon/homes/cs494/labs/Sh/programs UNIX> cat example one 1 lsnums /mahogany/homes/plank 4.5 5.yes UNIX> lsnums < example 1 4.5 5.yes UNIX> lsfiles example example lsnums /mahogany/homes/plank UNIX> Jim Plank