![]() |
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 |
| egrep syntax question | DKNUCKLES | Shell Programming and Scripting | 1 | 11-18-2007 04:46 PM |
| yet another awk field syntax question | prkfriryce | Shell Programming and Scripting | 4 | 03-22-2007 01:13 PM |
| C-shell: variable syntax question | alex_5161 | SUN Solaris | 0 | 01-30-2007 02:43 PM |
| Ok simple question for simple knowledge... | Corrail | UNIX for Dummies Questions & Answers | 1 | 11-28-2005 01:03 PM |
| awk syntax question | hcclnoodles | Shell Programming and Scripting | 2 | 10-28-2004 12:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Simple Awk Question: If Syntax
what is the correct syntax for an if statement:
1. {} around the code that you want to run, if the if is true {if (($34 != "") && (NR != 1) && ($1 != "F")) { is_number(34,"S1002a") less_than(34, 0, "S1002a") } } 2. or with no {} {if (($34 != "") && (NR != 1) && ($1 != "F")) is_number(34,"S1002a") less_than(34, 0, "S1002a") } Thanks |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|