![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to call c executable inside c program?? | zedex | High Level Programming | 9 | 05-15-2009 12:58 PM |
| bash: reading filenames from file | warp17 | Shell Programming and Scripting | 0 | 03-04-2008 06:28 AM |
| Reading filenames with extension .xml | bhalotias | Shell Programming and Scripting | 3 | 01-21-2008 12:02 PM |
| looping a array inside inside ssh is not working, pls help | reldb | Shell Programming and Scripting | 5 | 07-07-2006 11:32 AM |
| reading long filenames from nero to AIX | categoryzd | UNIX for Dummies Questions & Answers | 1 | 05-18-2006 11:57 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
reading filenames inside a program
UNIX Sun Ultra60 5.5.1
Hello everybody, I have a problem that seems simple but turns out to be complex (for me at least). My program needs to open a directory (this part is easy), scan each filename and determine whether or not a file with the suffix (.07) exists. So the program would return true if these files existed in the specified dir: 00.01.02.03.01 01.02.01.06.02 03.06.02.06.07 <---- 01.01.02.01.00 and false if the extension did not exist. I've tried looking for functions on the internet (like stat() for example) but haven't really found anything that seems like it would work. Is there a specific function that returns the filename into a given string? That would definitely solve all my problems...If anyone has any thoughts at all, I would greatly appreciate it. Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|