![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| if statement | ramky79 | Shell Programming and Scripting | 6 | 05-29-2008 12:17 AM |
| IF Statement | koti_rama | Shell Programming and Scripting | 3 | 04-29-2008 01:48 AM |
| If statement - How to write a null statement | april | Shell Programming and Scripting | 3 | 04-16-2008 10:14 AM |
| using && in if statement .. | jisha | Shell Programming and Scripting | 7 | 02-01-2008 03:52 AM |
| IF statement on a df -g | hassanj | UNIX for Advanced & Expert Users | 1 | 12-18-2007 03:41 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
If statement
Hi i am trying to set up an IF statement that says if FILE1 exists or FILE2 exists do a command. I am struggling to remember what i need to put in for the OR statement. i have the following
if [ -a $FILE1 (or?) -a $FILE2 ] then run my command fi Would a | command work? |
| Forum Sponsor | ||
|
|