Hi folks,
I'm trying to write a little script that's supposed to work with a certain value contained in a specific file. The File is always the same, only the value I need changes.
It looks something like that:
free space : 61.45 Percent
In order to work with that value I need to cut out the rest somehow and only write the value into a new output file.
e.g.:
I'd like to cut out
"free space : "
and
" Percent"
so that only
61.45
and is written into a new file.
How can I do this ?
Thanks in advance !
Regards,
Thomas
I'm trying to write a little script that's supposed to work with a certain value contained in a specific file. The File is always the same, only the value I need changes.
It looks something like that:
free space : 61.45 Percent
In order to work with that value I need to cut out the rest somehow and only write the value into a new output file.
e.g.:
I'd like to cut out
"free space : "
and
" Percent"
so that only
61.45
and is written into a new file.
How can I do this ?
Thanks in advance !
Regards,
Thomas