![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| testing if files exist | skooly5 | UNIX for Dummies Questions & Answers | 7 | 05-01-2008 10:10 AM |
| Check if certain files exist in a directory, if not add name to a textfile | SunnyK | Shell Programming and Scripting | 1 | 02-07-2008 09:21 AM |
| How to check a file exist and do a copy of other files | ahjiefreak | Shell Programming and Scripting | 6 | 12-20-2007 12:07 AM |
| Tab Completion showing files that Dont Exist | dittonamed | UNIX for Advanced & Expert Users | 3 | 05-27-2003 12:50 PM |
| Files listed Do not really exist | Ricky Raynor | UNIX for Advanced & Expert Users | 6 | 02-08-2002 05:20 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
It all depends on your requirements, but a 'next' will work fine:
Code:
for ($j = 1; $j <= $k; $j++)
{
open(FIN2,$fin2) or do {warn "Can't open $fin2: $!"; next;};
do other stuff
}
|
|
|||||
|
Quote:
the big problem i have is when the file is after the mundane open(FH,..) that your doing. and the print FH "" fails. This take a little bit of care and feeding but its worth it imo. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|