![]() |
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 |
| Csh to check for existence of file | Raynon | Shell Programming and Scripting | 9 | 12-05-2007 09:20 PM |
| Checking the existence of a file.. | igandu | Shell Programming and Scripting | 7 | 06-13-2007 03:47 AM |
| checking file existence | DILEEP410 | Shell Programming and Scripting | 3 | 01-24-2007 12:43 PM |
| File existence | mpang_ | Shell Programming and Scripting | 2 | 03-27-2006 11:27 AM |
| Loop for file existence | bd_joy | UNIX for Dummies Questions & Answers | 2 | 02-02-2006 12:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
File existence problem
I have a problem with file existence in shell. that is the code..
#!/bin/sh if [-f example.txt] then echo "File Exist!!" else echo "Error" fi but it gives an error in 2nd line. Did i write example.txt wrong? Is there any (`) or (") missing? or something like that? |
|
||||
|
Thank you so much Perderabo. It's ok now..
|
| Sponsored Links | ||
|
|