B
Bart_D
Hi,
I have the folowing problem.
I got a script that gives me serverinfo. I need to parse that text in
such a way that I can manipulate it.
The returned text looks like this :
Location Space Available Used
-------------------------------------------
HD1 50GB 2GB 48GB
HD2 10GB 8GB 2GB
(something like the "df"-command in Linux.)
I need to find out how I can separate the text from the spaces and
"save" the text in a var. But I have no idea how to do this. I am new
to Java and have little or no experience with Linux ... The ssh script
is not the problem. Parsing the text is. Hope somebody can help me.
I have the folowing problem.
I got a script that gives me serverinfo. I need to parse that text in
such a way that I can manipulate it.
The returned text looks like this :
Location Space Available Used
-------------------------------------------
HD1 50GB 2GB 48GB
HD2 10GB 8GB 2GB
(something like the "df"-command in Linux.)
I need to find out how I can separate the text from the spaces and
"save" the text in a var. But I have no idea how to do this. I am new
to Java and have little or no experience with Linux ... The ssh script
is not the problem. Parsing the text is. Hope somebody can help me.