Some commands output (e.g netstat) seem to have non standard format. It is for the purpose of extracting data automatically that I am inquiring. Is there some spec for this output? some clarification please. Thank you.
Page 1 of 1
Output File Format
#2
Posted 03 July 2009 - 08:05 AM
what sort of "spec" are you looking for?
All commands output text of some sort, but there is (and never will be) no specific format that they all follow. Each command's output is different.
All commands output text of some sort, but there is (and never will be) no specific format that they all follow. Each command's output is different.
><> FishSponge <><
[Richard Hobbs] [HiFi Forum]
This site is funded largely out of my own pocket, so if you are feeling generous, please
[Richard Hobbs] [HiFi Forum]
This site is funded largely out of my own pocket, so if you are feeling generous, please
#3
Posted 03 July 2009 - 10:02 AM
Thank you for reply. I thought this area (shells scripting) is more appropriate.
What I mean is that, in output, there's no hard fixed presentation of fields and parts of the text. If I want to extract data through grep, sed..,it is difficult or unfeasibe. The remaining question is that are they all ASCII? Line breaks are newline character, tabs,..? Thank you.
What I mean is that, in output, there's no hard fixed presentation of fields and parts of the text. If I want to extract data through grep, sed..,it is difficult or unfeasibe. The remaining question is that are they all ASCII? Line breaks are newline character, tabs,..? Thank you.
#4
Posted 03 July 2009 - 10:15 AM
ah, ok - i believe that all output to a terminal is indeed ASCII (basic text). Line breaks probably are a newline character, and tabs probably are a tab character.
What is it you are trying to extract - you don't normally need to go into this level of depth to grab some values from a command's output...
What is it you are trying to extract - you don't normally need to go into this level of depth to grab some values from a command's output...
><> FishSponge <><
[Richard Hobbs] [HiFi Forum]
This site is funded largely out of my own pocket, so if you are feeling generous, please
[Richard Hobbs] [HiFi Forum]
This site is funded largely out of my own pocket, so if you are feeling generous, please
Share this topic:
Page 1 of 1

Help











