|
From: todeepaksahoo on 1 Sep 2006 05:00 Hi, I have a ksh script as below. jobs -l | while IFS="${IFS}[]()" read ... I know IFS is for Field Separator; However I can't understand what does IFS="${IFS}[]()" mean??? Can Anybody help me on above? ~Deepak
From: Stachu 'Dozzie' K. on 1 Sep 2006 05:58 On 01.09.2006, todeepaksahoo(a)gmail.com <todeepaksahoo(a)gmail.com> wrote: > Hi, > I have a ksh script as below. > jobs -l | while IFS="${IFS}[]()" read ... > > I know IFS is for Field Separator; > However I can't understand what does IFS="${IFS}[]()" mean??? Append some characters to IFS. -- <Kosma> Niekt?rzy lubi? dozziego... <Kosma> Oczywi?cie szanujemy ich. Stanislaw Klekot
From: Deepak on 1 Sep 2006 06:09 Thanks for the reply, However I want to know what is the significance of []() in IFS="${IFS}[]()" Can you please explain on this? Stachu 'Dozzie' K. wrote: > On 01.09.2006, todeepaksahoo(a)gmail.com <todeepaksahoo(a)gmail.com> wrote: > > Hi, > > I have a ksh script as below. > > jobs -l | while IFS="${IFS}[]()" read ... > > > > I know IFS is for Field Separator; > > However I can't understand what does IFS="${IFS}[]()" mean??? > > Append some characters to IFS. > > -- > <Kosma> Niektórzy lubia dozziego... > <Kosma> Oczywiscie szanujemy ich. > Stanislaw Klekot
From: Stachu 'Dozzie' K. on 1 Sep 2006 06:20 On 01.09.2006, Deepak <todeepaksahoo(a)gmail.com> wrote: > Thanks for the reply, > However I want to know what is the significance of []() in > IFS="${IFS}[]()" > Can you please explain on this? That's the characters appended to $IFS. Couldn't you simply do ` echo "${IFS}[]()" '? And don't toppost. > Stachu 'Dozzie' K. wrote: >> On 01.09.2006, todeepaksahoo(a)gmail.com <todeepaksahoo(a)gmail.com> wrote: >> > Hi, >> > I have a ksh script as below. >> > jobs -l | while IFS="${IFS}[]()" read ... >> > >> > I know IFS is for Field Separator; >> > However I can't understand what does IFS="${IFS}[]()" mean??? >> >> Append some characters to IFS. >> >> -- >> <Kosma> Niekt?rzy lubia dozziego... >> <Kosma> Oczywiscie szanujemy ich. >> Stanislaw Klekot > -- <Kosma> Niekt?rzy lubi? dozziego... <Kosma> Oczywi?cie szanujemy ich. Stanislaw Klekot
From: Barry Margolin on 1 Sep 2006 06:40 In article <1157105362.819595.280540(a)p79g2000cwp.googlegroups.com>, "Deepak" <todeepaksahoo(a)gmail.com> wrote: > Thanks for the reply, > However I want to know what is the significance of []() in > IFS="${IFS}[]()" > Can you please explain on this? It adds the characters [, ], (, and ) to IFS. So these characters will be field separators, in addition to whatever is already in IFS. This is presumably done in advance of reading from a file that uses brackets and parentheses as separators. -- Barry Margolin, barmar(a)alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***
|
Pages: 1 Prev: sed - precutting str2 var from str1 input Next: Timestamp as a one-line-variable |