10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Platform :Oracle Linux 6.4
Shell : bash
The below file has 7 lines , some of them are duplicates. There are only 3 distinct lines. But why is the uniq command still showing 7 ?
I just want the distinct lines to be returned.
$ cat test.txt
SELECT FC.COORD_SET_ID FROM OM_ORDER_FLOW F, -... (2 Replies)
Discussion started by: kraljic
2. Shell Programming and Scripting
i have tried to retrieve a distinct list of data from a file with a command combination but the uniq command line is not filtering the fields repeated.
Can someone help me ?
here is the file input
3837737|LAUNCH... (4 Replies)
Discussion started by: ade05fr
3. Shell Programming and Scripting
I want to know if it is possible to perform addition as part of uniq command.
The above input should be converted as follows
... (4 Replies)
Discussion started by: tamil.pamaran
4. UNIX for Dummies Questions & Answers
Can You Please let Know How use unix uniq command on a single column for deleting records from file
with Below Structure.Pipe Delimter File .
Name | Account_Id
A | 101
B... (2 Replies)
Discussion started by: anudeepkumar123
5. Shell Programming and Scripting
Hello, I have a file with a list of car makes and specific information for each make. An example is:
and so on through a bunch of makes. I need to make a list in a selection box of just one name of... (12 Replies)
Discussion started by: macbb1117
6. UNIX for Dummies Questions & Answers
When comparing several files is there a way to find values unique to each file?
a (3 Replies)
Discussion started by: dr_sabz
7. UNIX for Dummies Questions & Answers
My file has
s (3 Replies)
Discussion started by: phoenix_nebula
8. Shell Programming and Scripting
cat 1.txt | uniq -c
Sample of whats in 1.txt
rlogin (2 Replies)
Discussion started by: Bandit390
9. UNIX for Dummies Questions & Answers
It's not entirely clear to me from manpage the difference between them.
Why we still need "-u" flag?
- monkfan (3 Replies)
Discussion started by: monkfan
10. UNIX for Dummies Questions & Answers
Please tell the usage of uniq command in UNIX with example
Thanks (2 Replies)
Discussion started by: skyineyes