![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| 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 03:45 AM |
| syntax error near unexpected token...what caused? | joshuaduan | Shell Programming and Scripting | 8 | 05-14-2007 06:02 AM |
| sh: syntax error: `...' unexpected??? | alan | Shell Programming and Scripting | 5 | 06-22-2004 03:58 PM |
| sh: syntax error at line 1: `>' unexpected | atiato | High Level Programming | 2 | 03-16-2004 03:39 AM |
| syntax error: `(' unexpected | adadevil | UNIX for Dummies Questions & Answers | 11 | 12-14-2001 05:17 PM |
|
|
Submit Tools | LinkBack | Thread Tools | 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.. |
| Forum Sponsor | ||
|
|