Çarşamba, Haziran 30, 2010

Bash String Split

I was looking for ways of splitting strings in bash and found and awesome one. If you have a delimited string lets say by an _ you do this
first set IFS="_"
then ar=($string_delimited_by__)
You got an array ar with elements coming from this string.

Hiç yorum yok: