Questions tagged [comm]

Comm is a UNIX utility used to compare two sorted files line by line. (For COMM ports, use tag "serial-port")

137 questions
0
votes
1 answer

Unix : Compare two TXT file issue and keep the lines which is not unique

I have two TXT files as #1.txt 1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4 5.5.5.5 #2.txt 1.1.1.1 2.2.2.2 6.6.6.6 7.7.7.7 8.8.8.8 I made comparison of 1.txt to 2.txt and get the IPs which is not in 2.txt when comparing with 1.txt . I did, #comm -2 -3…
Arun
  • 1,160
  • 3
  • 17
  • 33
0
votes
2 answers

Arduino program that allows me to change state through comm port?

new here! been recommended many times to come here for help so here I am. I'm supposed to write a program that allows me to change the rate of a blinking LED light through the comm port. I'm sure this is easy but I've honestly got no clue as I am…
Bruno Melofiro
  • 107
  • 1
  • 1
  • 6
0
votes
2 answers

grep in two files returning two columns

I have a big file like this: 79597700 79000364 79002794 79002947 And other big file like this: 79597708|11 79000364|12 79002794|11 79002947|12 79002940|12 Then i need the numbers that appear in the second file that are in the first file bur with…
Code Geas Coder
  • 1,839
  • 4
  • 23
  • 29
0
votes
1 answer

Shell comm parameters issue

I have an issue running a shell script with parameters. This command running directly on Linux works: comm -13 <(sort /tmp/f1.txt) <(sort /tmp/f2.txt) > /tmp/f3.txt If I am trying to run this shell script with this command sending the parameters…
Andrey
  • 1,808
  • 1
  • 16
  • 28
0
votes
1 answer

Can comm be used with files sorted on a column other than the first?

Consider I have 2 text files with each row in both files containing certain fields delimited by '|'. If I have sorted the files using the 3rd column, does comm -23 file1.txt file2.txt > difference.txt give me the rows which are present in file1.txt…
Deepak K M
  • 521
  • 1
  • 5
  • 13
0
votes
1 answer

Extract differences from logs

Sorry if it's a simple shell programming question but I couldn't find a way to do exactly what I wanted. I have 2 logs. log1 Cust Subsys StartDate EndDate col1 col2 col3 1001 10000 20150501 20150731 6.1700 …
Shiny
  • 13
  • 2
0
votes
2 answers

Remove Duplicates from Multiple files with Awk or similar

I have multiple 2-column, tab-separated files of different lengths in which I want to eliminate the duplicate values that are common to ALL files. For example: File 1: 9 1975 1518 a 5 a.m. 16 able 299 about 8 above 5 access File 2: 6 …
owwoow14
  • 1,694
  • 8
  • 28
  • 43
0
votes
1 answer

3GModem NoSuch Port Execption

I am using my 3G modem port in my SMSlib but my code is not detecting the port and is giving this error try { CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier("COM1"); } catch(Exception e) { e.printStackTrace(); } My…
Mujahid
  • 49
  • 4
0
votes
1 answer

TypeError: recv() got an unexpected keyword argument 'dest'

I am trying to use MPI in python to do some parallel computing for midpoint integration. I am not really familiar with MPI and I have looked around at some examples to produce what I have thus far. I am having trouble with a couple of errors where…
0
votes
1 answer

can I read data in java that is being generated from a hyperteminal device

Is there any way I can read hyper-terminal data in JAVA to display it in a desktop software. I am using hyper-terminal with a weighing machine connected with a port COMM 3. I am not able to get how to read the data from it and how to display it into…
Ankit
  • 1
  • 5
0
votes
1 answer

SMS forward immediately to pc by ZTE GSM modem

I want to read message using a ZTE GSM modem. But I want when Modem get new message just forward it to PC. How should I implement this I read +CNMI AT command but could not get it.
0
votes
1 answer

intersection with multiple files

I have 4 text file in which each file has a single column of data (~2000 lines in each file). What I am trying to do, is to compare all of the files, and determine what is the overlap between the different files. So, I would want to know what is in…
user1352084
  • 459
  • 3
  • 6
  • 13
0
votes
2 answers

Command line to consider common values in only in specific column

I am looking for an simple command line to help me with the following task. I have two files and I would like to print the lines for which they have a value in Col2 in common. For instance File1 is similar to the following 3-column tab separated…
owwoow14
  • 1,694
  • 8
  • 28
  • 43
0
votes
1 answer

Define a patch to each serial port

I'm using CentOS 6 and I have two serial ports (two USB interfaces on two different ports), USB1 and USB2. When I connect the USB1, the OS sets her patch to "/dev/ttyACM0", and when I connect the USB2, "/dev/ttyACM1". But when I connect first the…
0
votes
2 answers

UNIX: using comm without creating temporary files

I wanted to use comm to compare 2 lists: one consists of randomly generated words: cat /dev/urandom | head -n 10000 | strings | tr 'A-Z' 'a-z' | sort the other one is an english dictionary: wget -q0- | sort (I can't really give away the…
user2849420