[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Inode
Hi,
> I know only the inode number of a file. Is there anyway i can fetch
> the contents of the file( preferably through a C program) . Assume
> the access permissions are OK with the file.
The easiest way wud b to :-
Use find with "-inum" option as follows:
find <dir> -inum -exec cat {} \;
It shudn't be extremely difficult to simulate find (though it might take
some time).
Hope this helps.
Bye 4 now,
Sudhir.P
- --
When you hit rock bottom, there is no way, but, up.
P.Sudhir
HCL Technologies India Pvt Ltd.
Yahoo-pager: sudhir_lp
Tel (Off): +91-44-37419(39,40,41,42) Extn:2332
(Res): +91-44-6370143
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated. If you can appreciate satire read
http://www.templetons.com/brad/emily.html
------------------------------
- Prev by Subject:
Inode
- Next by Subject:
Inode
- Previous by thread:
Inode
- Next by thread:
Inode
- Index(es):