Results 1 to 3 of 3
I am using gnu bash 3.2
I need to split the string into array like
a=this_is_whole_world.file # split [_.]
I need to split this on _ and . some thing ...
- 10-14-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 1
bash string splitting into array
I am using gnu bash 3.2
I need to split the string into array like
a=this_is_whole_world.file # split [_.]
I need to split this on _ and . some thing like this
a[0]=this
a[1]=is
a[2]=whole
a[3]=world
a[4]=file
preferable using bash regex. if not sed is also ok.
Thanks
Pen
- 11-06-2010 #2Linux User
- Join Date
- Jan 2005
- Location
- Saint Paul, MN
- Posts
- 262
- 12-11-2010 #3


Reply With Quote
