![]() |
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 |
| "syntax error at line 21 :'done' unexpected." error message" | ibroxy | Shell Programming and Scripting | 3 | 08-08-2007 06:45 AM |
| syntax error near unexpected token...what caused? | joshuaduan | Shell Programming and Scripting | 8 | 05-14-2007 09:02 AM |
| sh: syntax error: `...' unexpected??? | alan | Shell Programming and Scripting | 5 | 06-22-2004 06:58 PM |
| sh: syntax error at line 1: `>' unexpected | atiato | High Level Programming | 2 | 03-16-2004 07:39 AM |
| syntax error: `(' unexpected | adadevil | UNIX for Dummies Questions & Answers | 11 | 12-14-2001 09:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
hi there
i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day, Year BEGIN { listmonths = "January,Febmary,March,April,May,June," listmonths = listmonths "July,August,September," listmonths = listmonths "October,November,December" split(listmonths, month, ",") } $1 != "" { sizeOiArray = split($l, date, "/") if (sizeOfArray == 1) sizeOfArray = split($l, date, "-") if (sizeofArray == 1) exit date[1] += 0 print month[date[1]], date[2]", 19" date[3] }` error : Syntax Error : `split' unexpected please do something to solve my problem.. |
|
||||
|
I don't know the answer to the main question, but you have a typo which is possibly contributing to the problem:
sizeOiArray instead of sizeOfArray |
| Sponsored Links | ||
|
|