Skip to main content

Questions tagged [uniq]

0 votes
2 answers
96 views

I have a pipeline using array jobs and need to change the number of inputs for some steps. I thought about testing uniq since the only part changing in my folders are the last four characters (the hap ...
Matteo's user avatar
  • 387
1 vote
1 answer
130 views

I have a software module which contains some files with same pattern. <whitespaces>private static final long serialVersionUID = \dL; How can I find files with the same value? $ grep -R ...
Jin Kwon's user avatar
  • 564
1 vote
1 answer
209 views

I am trying to count how many times I use a certain version of a library on my computer. For some reason, uniq -c is outputing duplicates, despite sorting it, and despite the sort order seeming in ...
Albert's user avatar
  • 171
-1 votes
2 answers
242 views

I'm working with bash_history file containing blocks with the following format: #unixtimestamp\ncommand\n here's sample of the bash_history file: #1713308636 cat > ./initramfs/init << "...
ReYuki's user avatar
  • 33
0 votes
3 answers
104 views

When I don't remember where a file or a folder is, I sometime use the locate command (that finds more occurrences, allow more candidates than a find, in my mind. But maybe I'm mistaking). But then ...
Marc Le Bihan's user avatar
11 votes
1 answer
1k views

I'm trying to monitor theme changes using this command: dbus-monitor --session "interface='org.freedesktop.portal.Settings', member=SettingChanged" | grep -o "uint32 ." Output ...
Pavel Skipenes's user avatar
1 vote
5 answers
541 views

https://www.domain.com/files/G5SPNDOF/AAA-1080p.mp4.html https://www.domain2.com/dl/G5SPNDOF/JHCGTS/AAA-1080p.mp4.html https://www.domain.com/files/ZQWL80BG/AAA-1080p.mp4.html https://www.domain.com/...
Bogdan Nicolae Stoian's user avatar
0 votes
0 answers
29 views

I have a file with many redundant numbers in each row. Imagine something like the below: echo "10 9 5 6 4 cell 3 2 0 7 0 1" > test When I use sort -un test I get the following output: ...
javadr's user avatar
  • 131
0 votes
2 answers
354 views

I'm trying to use tar(1) to create an archive of files newer than a specific file (fileA). However, when I use find(1) to obtain the list of files to pass to tar, some files are listed multiple times: ...
Vilinkameni's user avatar
  • 1,659
4 votes
1 answer
11k views

I always have been using sort -u to get rid of duplicates until now. But I am having a real doubt about a list generated by a software tool. The question is: is the output of sort -u |wc the same as ...
Yvain's user avatar
  • 248
0 votes
3 answers
107 views

I am compiling some access rules from failed logins and after some piping I arrived at this: cat <<INPUT | sort -k 3,3 --unique Deny from 13.42.98.142 # demo Deny from 13.42.98.142 # test Deny ...
Jonas Eberle's user avatar
14 votes
2 answers
4k views

I'm doing some processing trying to get how many different lines in a file containing 160,353,104 lines. Here is my pipeline and stderr output. $ tail -n+2 2022_place_canvas_history.csv | cut -d, -f2 |...
wviana's user avatar
  • 213
3 votes
5 answers
911 views

I have a file that has entries in key: value format like the below: cat data.txt name: 'tom' tom_age: '31' status_tom_mar: 'yes' school: 'anne' fd_year_anne: '1987' name: 'hmz' hmz_age: '21' ...
Ashar's user avatar
  • 527
-1 votes
1 answer
132 views

Using uniq it is possible to filter out sequential duplicate lines. while (true) do echo 1; echo 2; echo 2; echo 1; sleep 1; done | uniq becomes: 1 2 1 Is there a way to have duplicated sequential ...
Jose Gómez's user avatar
3 votes
2 answers
873 views

I have a script like this find path -type f -exec md5sum {} +' It has this conclusion /tmp ❯ find $pwd -type f -exec md5sum {} + \a7c8252355166214d1f6cd47db917226 ./guess.bash ...
Котик Вася's user avatar

15 30 50 per page
1
2 3 4 5
12