ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsilist and awk

Post new topic  Reply to topic
 mqsilist and awk « View previous topic :: View next topic » 
Author Message
btjo
PostPosted: Fri Jul 30, 2004 10:39 am    Post subject: mqsilist and awk Reply with quote

Novice

Joined: 07 Jul 2004
Posts: 19

$ mqsilist
BIP8099I: MYBROKER1 - MYQM1
BIP8099I: MYBROKER2 - MYQM2
BIP8099I: MYBROKER3 - MYQM3

BIP8071I: Successful command completion.

$

Is the Broker Name a field (2nd field $2)? or does it come at a particular character position always (11th position). i want to capture it using awk for my script.

Thanks.
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Jul 30, 2004 11:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Code:

 mqsilist | awk '{print $2}'
Back to top
View user's profile Send private message Send e-mail Visit poster's website
btjo
PostPosted: Fri Jul 30, 2004 11:23 am    Post subject: Reply with quote

Novice

Joined: 07 Jul 2004
Posts: 19

Vennela: Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsilist and awk
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.