system function calls for directory listing..

system function calls for directory listing..

Post by Zack Wicke » Tue, 02 May 2000 04:00:00



I am just starting to code UNIX portable ANSI C.  

I am totally new to UNIX.

I need to make the equivalent system call in UNIX of the following
MS-DOS command:

dir *.TRK /P /O:N

If you dont know.... the command will list all files in the current
directory with the extension .TRK, it will also pause if there is more
than a screenful of information, also, the displayed files are sorted in
name order.

-- Thank You.
==========================================
Zack Wickes             BCIT Set:  COMP 2F

==========================================

 
 
 

system function calls for directory listing..

Post by Erik Max Franci » Tue, 02 May 2000 04:00:00



> If you dont know.... the command will list all files in the current
> directory with the extension .TRK, it will also pause if there is more
> than a screenful of information, also, the displayed files are sorted
> in
> name order.

    ls *.trk | more

--

  Alcyone Systems | web http://www.alcyone.com/max/ | 971.370 Ms p.L.
 San Jose, CA, US | icbm 37 20 N 121 53 W | 244 days left | &tSftDotIotE
__________________| Alcyone Systems' CatCam -- http://www.catcam.com/
 __
/  \ Do not seek death.  Death will find you.
\__/ Dag Hammarskjold