The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-16-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
This is not particularly newbie-friendly, but a common shell scripting idiom.

Code:
oldifs=IFS
IFS=,
set -- $variable
hs1=$1
hs2=$2
hs3=$3
hs4=$4
IFS=$oldifs
Reply With Quote