rgoud has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advanceNEWTIME=`date |awk '{print $4}'|awk -F: '{print $1$2}'` <-This is work +ing fine echo $NEWTIME 2047 # VAR1=`echo $NEWTIME|cut -c1-2` <- here it is failing echo $VAR1 20 # VAR2=`echo $NEWTIME|cut -c3-4` <- here it is failing # echo $VAR2 47
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split function
by ikegami (Patriarch) on Jan 27, 2011 at 03:38 UTC | |
by remiah (Hermit) on Jan 27, 2011 at 07:47 UTC | |
|
Re: split function
by Anonymous Monk on Jan 27, 2011 at 07:56 UTC | |
by Anonymous Monk on Jan 27, 2011 at 20:31 UTC | |
by ikegami (Patriarch) on Jan 27, 2011 at 21:09 UTC | |
by Anonymous Monk on Jan 27, 2011 at 20:54 UTC | |
by rgoud (Initiate) on Jan 28, 2011 at 03:50 UTC | |
by Anonymous Monk on Jan 28, 2011 at 04:08 UTC | |
|
Re: split function
by rowdog (Curate) on Jan 27, 2011 at 03:23 UTC | |
|
Re: split function
by bart (Canon) on Jan 27, 2011 at 11:34 UTC |