Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to get each file name from a Unix dir in filename (not I-node) order.

Re: How to get each file name from a Unix dir in filename (not I-node) order.

From: A.van.Kessel <Adriaan.van.Kessel_at_NotThere.rivm.nl>
Date: 1998/09/18
Message-ID: <6ttl0a$in$1@mississippi.rivm.nl>#1/1

And what do you want to do with inodes with a linkcount > 1 ? Yes, basically there are three ways to do what you want:

0 ) the unix way: dont do it.
  Instead let the program take a list of filenames (on stdin)    which is generated by an external pgm.

  1. the semi-portable way: do a system() (or popen())
  2. the non-portable way : use readdir/dosfind1st/windowsfind2nd or whatever -- Happy hacking,

Adriaan van Kessel.
Ingres DBA, C/Unix hacker
Email: Adriaan.van.Kessel_at_rivm.nl
(remove NotThere. from the address in the header) *** Nederlandstalige zachtwaar is een pijn in de aars *** Received on Fri Sep 18 1998 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US