The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-04-2002
j_t_kim j_t_kim is offline
Registered User
  
 

Join Date: Mar 2002
Posts: 6
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0