![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Csh to check for existence of file | Raynon | Shell Programming and Scripting | 9 | 12-05-2007 05:20 PM |
| Checking the existence of a file.. | igandu | Shell Programming and Scripting | 7 | 06-13-2007 12:47 AM |
| checking file existence | DILEEP410 | Shell Programming and Scripting | 3 | 01-24-2007 08:43 AM |
| File existence | mpang_ | Shell Programming and Scripting | 2 | 03-27-2006 08:27 AM |
| Loop for file existence | bd_joy | UNIX for Dummies Questions & Answers | 2 | 02-02-2006 08:51 AM |
|
|
Submit Tools | LinkBack | Thread Tools | 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? |
| Forum Sponsor | ||
|
|