The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
comm command amitrajvarma Shell Programming and Scripting 8 02-06-2008 05:20 AM
Can you limit the compare on "comm" command eja UNIX for Dummies Questions & Answers 0 03-23-2007 12:48 PM
comm command in sorting IP tads98 UNIX for Advanced & Expert Users 1 05-16-2006 07:41 AM
Comm, command help cowpoke UNIX for Dummies Questions & Answers 2 10-25-2005 08:26 AM
comm ?! tine Shell Programming and Scripting 8 12-08-2003 03:52 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-27-2009
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
help in comm command

Hi all,

I need help in comm command , I am having 2 files . I have to display the common line in the two file only onnce and i have to also display the non common line as well.

tmpcut1 -- First file
cat tmpcut1

smstr_303000_O_432830_... f_c2_queue_sys30.sys30 RUNNING 10 1000
smstr_303000_O_432834_... QUE_WAIT 10 1000
smstr_303000_O_432836_... QUE_WAIT 10 1000
smstr_303000_O_432837_... QUE_WAIT 10 1000
smstr_303000_O_432839_505 f_c1_queue_sys30.sys30 RUNNING 10 1000
smstr_303000_O_432840_... QUE_WAIT 10 1000
smstr_404000_O_162388_... f_p1_queue_sys40.sys40 RUNNING 10 1000

tmpcut2 -- Second file


cat tmpcut2
smstr_303000_O_432834_... f_c2_queue_sys30.sys30 RUNNING 10 1000
smstr_303000_O_432836_... QUE_WAIT 10 1000
smstr_303000_O_432837_... QUE_WAIT 10 1000
smstr_303000_O_432840_... f_c1_queue_sys30.sys30 RUNNING 10 1000
smstr_303000_O_432841_... QUE_WAIT 10 1000
smstr_303000_O_432844_... QUE_WAIT 10 1000
smstr_404000_O_162386_... f_c2_queue_sys40.sys40 RUNNING 10 1000
smstr_404000_O_162389_... f_c1_queue_sys40.sys40 RUNNING 10 1000



When i used

comm -12 tmpcut1 tmpcut2

i get an empty file , please help


Thanks in Advance,
Arun
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0