M
Mr_Noob
Hi all,
What is the best way to grep into a file, only lines beginning with
"[" and ending with "]" ?
And then, how can I feed an array with the information contained
between the 2 brackets, without the 2 brackets?
here is a sample of my file :
....
[blah blah blah]
some stuff here
[blabla again]
here is some other stuff here too
....
What I'd like to obtain is :
....
bla blah blah
blabla again
....
thanks in advance for ur help
Regards
What is the best way to grep into a file, only lines beginning with
"[" and ending with "]" ?
And then, how can I feed an array with the information contained
between the 2 brackets, without the 2 brackets?
here is a sample of my file :
....
[blah blah blah]
some stuff here
[blabla again]
here is some other stuff here too
....
What I'd like to obtain is :
....
bla blah blah
blabla again
....
thanks in advance for ur help
Regards