![]() |
|
|
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 |
| Parse String from a Variable | racbern | Shell Programming and Scripting | 3 | 04-07-2008 01:04 PM |
| How do you parse a variable in a bash script? | vertical98 | Shell Programming and Scripting | 3 | 03-18-2008 04:30 PM |
| parse a string variable | methos | Shell Programming and Scripting | 3 | 10-18-2005 05:18 PM |
| How to parse.. | natter | Shell Programming and Scripting | 8 | 05-22-2003 10:11 AM |
| Parse | nguda | Shell Programming and Scripting | 7 | 05-16-2002 10:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
parse variable
I have a variable (it is a date actually -> 2007-01-03) which
would be passed in as parameter, what I want is to parse in and put year, month, and day in separate variables, I have tried the following but doesn't work echo $dt | awk -F- '{print $1 $2 $3}' | read y m d Thanks in advance |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|