137 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
49
views
Handling .ipynb Click Event to Open Linked Document in Side-by-Side View in JupyterLab
I'm trying to implement functionality where a link in a .ipynb notebook triggers an event and opens a linked document in a split/side-by-side view in JupyterLab. Specifically, I'm using a custom ...
1
vote
0
answers
55
views
Why can't the comm command tell the difference between ✓ & ⨯ when LANG=en_US.UTF-8?
If I have two files, a.txt containing:
meow ✓ bar
and b.txt containing:
meow ⨯ bar
Why can't the GNU Coreutils command comm tell the difference between the two when $LANG is set to a UTF-8 encoding?
...
0
votes
1
answer
414
views
Sending commands to COM port in VBA for Tower Light
I have been attempting to control a USB Tower Light that I bought from Adafruit. (part # 5125) see https://www.adafruit.com/product/5125?gclid=EAIaIQobChMIwOrro5Dm_QIVNcmUCR3gCALAEAQYAiABEgKy9_D_BwE
...
0
votes
1
answer
56
views
terminal, diff of two files, print out all lines, which are on the 2nd file a no on 1st file
On follow samples, every line can be empty or can have some characters. The characters can be other than numbers too. Every line can have line feeds and tabs too.
Follow looks partly fine, a don't ...
0
votes
2
answers
137
views
How to use unix comm command in Tcl?
I am trying to use Unix's comm command to compare two files in Tcl.
I tried the below to no avail:
exec bash -c {comm -2 -3 <(sort file1) <(sort file2) > only_in_file1}
exec {comm -2 -3 <(...
-1
votes
3
answers
175
views
How to comparing two big files on unique strings using fgrep/comm?
I have two files. A file disk.txt contains 57665977 rows and database.txt 39035203 rows;
To test my script I made two example files:
$ cat database.txt
01fffca9-05c8-41a9-8539-8bb2f587cef2
02fffd0d-...
0
votes
1
answer
56
views
Output only changed lines
I'm trying to get diff to only output changed lines, not added or deleted files.
So if file 1 contains:
hello 1
my 2
name 3
and file 2 contains:
hello 2
my 2
earth
I would get output similar to:
<...
0
votes
1
answer
82
views
Why does my command stop working when I put it into an alias?
I am trying to run the following command
comm -23 <(pacman -Qqe | sort) <(awk '{print 1ドル}' /desktopfs-pkgs.txt | sort)
I get the following output
autoconf
automake
bison
chromium
code
discord
...
0
votes
1
answer
867
views
GNU/Linux using comm with a file and the output of a command
I want to use the comm command to compare a text file and the output of a command.
My first idea was to run:
comm packagesList $(pacman -Qe)
However, that outputs an errpr. I also tried using ́pacman ...
1
vote
2
answers
489
views
Using bash comm command on columns but returning the entire line
I have two files, each with two columns and sorted only by the second column, such as:
File 1:
176 AAATC
6 CCGTG
80 TTTCG
File 2:
20 AAATC
77 CTTTT
50 TTTTT
I would like to use comm command ...
0
votes
2
answers
189
views
How to get files in directory A but not B and vice versa using bash comm?
I'm trying to use comm to get files on a folder A that is not on B and vice-versa:
comm -3 <(find /Users/rob/A -type f -exec basename {} ';' | sort) <(find "/Users/rob/B" -type f -exec ...
Roberto's user avatar
- 12.1k
1
vote
0
answers
59
views
Identifying matching lines across multiple files in Linux
I'm working on a script to help me identify matching lines across multiple files. I've had luck with the comm command:
comm -12 <(sort file1.txt) <(sort file2.txt)
This works and can be daisy-...
2
votes
2
answers
1k
views
Merging two large sorted files into one unique file
I have two very large files (rows in billions), and the rows are sorted and unique, I want an efficient way to merge these two files into one file where its rows are sorted and unique. I thought about ...
1
vote
2
answers
79
views
How do I see if the output of one command is in the output of another?
I have two commands. The first, when stored in a script variable, gives output like this:
one two three four five
The second also gives a list, but some of the items may be missing that were in the ...
Chuck's user avatar
- 4,978
0
votes
2
answers
482
views
Finiding common lines for two files using bash
I am trying to compare two files and output a file which consists of common names for both.
File1
1990.A.BHT.s_fil 4.70
1991.H.BHT.s_fil 2.34
1992.O.BHT.s_fil 3.67
1993.C.BHT.s_fil -1.50
1994.I....