LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-02-2023, 01:12 AM   #1
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,417
Blog Entries: 43

Rep: Reputation: 36
Find Duplicates Automatically from Facebook Friends


I'm asking here, as I think it can be done with a simple command or two, though I'm unfamiliar with such commands. Yes I know about the commands in general, like sed and grep and everything. But I don't really know the complete list or how to use them. So since I'm pretty sure it's a simple command or two, I'm asking here. I don't think I need to write my own program for it.

I need to know, if I have a list of facebook friends, I manually created, and I get rid of the niceties in the file, and just have a list where each item begins with a star (*), then a space, and then the name of a facebook friend, and you can assume I typed it right for this simple task. Each line, of course ends with a newline, now how do I take that list and filter out the duplicates? This is the first task of this kind I've needed to do (lucky me). I don't know where else besides the linux mint forums to ask for how to do it, and I don't yet know how to search for it, but I'd love to learn. I just don't know what words to give the search engine. Maybe I think of them later? Anyway, I'm sure others know how to do this on Linux Mint command line, simply in a few seconds. I don't yet.
 
Old 07-02-2023, 06:39 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
sort -u
 
Old 07-02-2023, 07:17 AM   #3
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,417

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Thanks. I think that worked, reading the man page on what it does. Thanks very much!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Look for duplicates in folder tree A and folder tree B, then delete the duplicates only from A. grumpyskeptic Linux - Software 7 10-27-2018 10:23 PM
LXer: Public warning: Windows 10 will share your Wi-Fi password with your friends' friends LXer Syndicated Linux News 0 07-01-2015 12:33 AM
LXer: How to synchronize your Facebook friends and events with KDE LXer Syndicated Linux News 0 05-12-2012 01:31 AM
Chemistry problem: Identify duplicates and non-duplicates within TWO sdf files robertselwyne Programming 5 12-09-2011 06:20 AM
LXer: Zuck loves New York, Facebook friends Big Apple LXer Syndicated Linux News 0 12-05-2011 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration