The output is better when viewed in courier new 9 pt font.
I’m having trouble sorting absolutely by the second field.
The “cat $FILE|egrep -v "value1|value2|value3|value4|value5|value6"|cut -c1-80|sort +2 –if” command is utilized to generate the following system_id user_id pid and time output.
ctrbgone3 bgone 48794 08:56:44.78
ctrbgone3 bgone 57012 08:56:29.35
ctrsharedgui2 bgone 58890 09:48:52.91
ctrsharedgui3 bgone 59396 09:49:14.33
ctrsharedgui1 bgone 64580 09:46:32.52
ctrbgone3 bgone 68052 08:57:18.26
ctrvcthree2 vcthree 53410 10:01:19.00
ctrbricktwo1 bricktwo 43064 09:06:34.97
This output is correctly performing a group sort against the second column but not an absolute sort. Thus all the bgone sessions are together but vcthree is appearing between bgone and bricktwo.
The above question is my primary need, but a second question is how do I get it to sort by column 2 and then column 1 so the output will look like this:
ctrbgone3 bgone 48794 08:56:44.78
ctrbgone3 bgone 57012 08:56:29.35
ctrbgone3 bgone 68052 08:57:18.26
ctrsharedgui1 bgone 64580 09:46:32.52
ctrsharedgui2 bgone 58890 09:48:52.91
ctrsharedgui3 bgone 59396 09:49:14.33
ctrbricktwo1 bricktwo 43064 09:06:34.97
ctrvcthree2 vcthree 53410 10:01:19.00
-B
I’m having trouble sorting absolutely by the second field.
The “cat $FILE|egrep -v "value1|value2|value3|value4|value5|value6"|cut -c1-80|sort +2 –if” command is utilized to generate the following system_id user_id pid and time output.
ctrbgone3 bgone 48794 08:56:44.78
ctrbgone3 bgone 57012 08:56:29.35
ctrsharedgui2 bgone 58890 09:48:52.91
ctrsharedgui3 bgone 59396 09:49:14.33
ctrsharedgui1 bgone 64580 09:46:32.52
ctrbgone3 bgone 68052 08:57:18.26
ctrvcthree2 vcthree 53410 10:01:19.00
ctrbricktwo1 bricktwo 43064 09:06:34.97
This output is correctly performing a group sort against the second column but not an absolute sort. Thus all the bgone sessions are together but vcthree is appearing between bgone and bricktwo.
The above question is my primary need, but a second question is how do I get it to sort by column 2 and then column 1 so the output will look like this:
ctrbgone3 bgone 48794 08:56:44.78
ctrbgone3 bgone 57012 08:56:29.35
ctrbgone3 bgone 68052 08:57:18.26
ctrsharedgui1 bgone 64580 09:46:32.52
ctrsharedgui2 bgone 58890 09:48:52.91
ctrsharedgui3 bgone 59396 09:49:14.33
ctrbricktwo1 bricktwo 43064 09:06:34.97
ctrvcthree2 vcthree 53410 10:01:19.00
-B