How does one do the bash equivalent of a perl split?

Here's the closest I've come up with, which works but surprised me:

  ( IFS="." ; set foo.bar.com ; set $1 ; echo $2)

I would have expect this to work, but it doesn't:

  ( IFS="." ; set foo.bar.com ; echo $2)

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent

_______________________________________________
CWE-LUG mailing list
http://www.cwelug.org/ [email protected]
http://lists.firepipe.net/listinfo/cwe-lug

Reply via email to