Search Results

Search: Posts Made By: Jim Hertzler
59,896
Posted By Jim Hertzler
Go to: bash shell script split array -...
Go to:
bash shell script split array - LinuxQuestions.org (http://www.linuxquestions.org/questions/programming-9/bash-shell-script-split-array-383848/?posted=1#post3270996)
And see:
IP=1.2.3.4;...
59,896
Posted By Jim Hertzler
#!/bin/bash # Split the command line argument...
#!/bin/bash
# Split the command line argument on the colon character.

SaveIFS=$IFS
IFS=":"
declare -a Array=($*)
IFS=SaveIFS

echo "Array[0]=${Array[0]}"
echo "Array[1]=${Array[1]}"
echo...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy