Hi,
I have a unix command "hogs" which gives the formatted output from the "ps -ef" command. The output of this command is given below.
============================================================
14768 5.2 02:54:09 236 root abmon -m 2
5246 0.3 00:40:06 160 root /usr/sbin/syncd 0
12646 0.1 00:13:38 2708 root /usr/sbin/sddsrv
6336 0.1 00:12:34 1260 root dtgreet
============================================================
I would like to extract each line into six fields. For ex, for the first record, following should be the values that I need.
$1 = 14768
$2 = 5.2
$3 = 02:54:09
$4 = 236
$5 = root
$6 = abmon -m 2
Can some one help me?. My $6 variable should contain everything after $6.
Thanks,
Balaji.
I have a unix command "hogs" which gives the formatted output from the "ps -ef" command. The output of this command is given below.
============================================================
14768 5.2 02:54:09 236 root abmon -m 2
5246 0.3 00:40:06 160 root /usr/sbin/syncd 0
12646 0.1 00:13:38 2708 root /usr/sbin/sddsrv
6336 0.1 00:12:34 1260 root dtgreet
============================================================
I would like to extract each line into six fields. For ex, for the first record, following should be the values that I need.
$1 = 14768
$2 = 5.2
$3 = 02:54:09
$4 = 236
$5 = root
$6 = abmon -m 2
Can some one help me?. My $6 variable should contain everything after $6.
Thanks,
Balaji.