Quote:
The host and version i want to extract form line /users/test/
I have store data like this
Host Version SiCat YRS PSD
limo 10 3 3 5
krache 9 5 7 0
|
Um, I'm not sure exactly what you need, but if you are just wanting to extract fields from a file that is easy. For example, if the file is '/users/test/file' and the contents are what you listed above then you would grab the HOST (column 1) and VERSION (column 2) this way:
Code:
wdierkes$ cat /users/test/file | awk {' print "HOST: "$1 " VERSION: "$2 '}
HOST: limo VERSION: 10
HOST: krache VERSION: 9
That is just a very simple example. Please feel free to clarify if that doesn't answer your question.
Recent comments
15 hours 28 min ago
20 hours 33 min ago
1 day 57 min ago
1 day 2 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 4 hours ago
2 days 5 hours ago
2 days 6 hours ago