|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
How do I split a string in KSH?
For instance I have 1.2.3 and I want to split it out based on the period. |
|
#2
|
|||
|
|||
|
Try this:
x="1.2.3" echo first = ${x%%.*} second = ${x#+([!.]).} |
|
#3
|
|||
|
|||
|
not clear what you want...
to split echo "1.2.3" | sed 's/\./ /g' |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > KSH Scripting Question - Splitting String |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|