Computing.Net > Forums > Solaris > Need a shell

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Need a shell

Reply to Message Icon

Name: rakib.kanak
Date: March 14, 2009 at 20:30:45 Pacific
OS: Sun Solaris 10
CPU/Ram: 4 GB
Product: Sun / V890
Subcategory: Configurations
Comment:

Hi

i need a script to find out some desired records. I m giving sample records below.

seq_num Type Trace
========= === =====
1210202510 220 12155
1210221540 220 12182
1210245670 220 178624
1210245690 420 178624
1210249850 220 16426
1210358260 220 9260
1210358880 220 6073
1210272190 220 378396
1210272220 420 378396
1210294950 220 57344
1210294980 420 57344


These type of records i got in my shell prompt after giving a specific command. It's not an output
file just out put of a command. I want to find out the records with same trace and atleast one type 420 and related
type 220 so that output is like below:

seq_num Type Trace
========= === =====
1210245690 420 178624
1210245670 220 178624
1210245650 420 178624
1210272190 220 378396
1210272220 420 378396
1210294950 220 57344
1210294980 420 57344

I tried with as

command|grep 420

but it brings all records having string 420

Can any one help on that issue...?

Rakib



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Need a shell

shell script to check a dynamic ip www.computing.net/answers/solaris/shell-script-to-check-a-dynamic-ip/4287.html

How to call an URL from a shell scr www.computing.net/answers/solaris/how-to-call-an-url-from-a-shell-scr/3998.html

shell script www.computing.net/answers/solaris/shell-script/4427.html