Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-09-2004, 04:08 AM   #1
LQ Newbie
Registered: Sep 2004
Posts: 11

Rep: Reputation: 0
How to loop or sort in bash, awk or sed?

Hi i have a problem in one of my modules. I have a file which contains different entries that are stored in such a way that there is only one entry per line. Unfortunately, there are line entries that are similar to the other lines which is therefore making the other entries redundant so what i plan to do is to make "sort" or "loop" function to make the file contain unique entries only. any ideas? thank you so much!
Old 09-09-2004, 04:22 AM   #2
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
i think "man sort", and "man uniq" are your firends



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
....How to use awk to sort.... nisson Linux - General 12 11-02-2012 04:51 PM
how to delete duplicates entries in xml file using sed/awk/sort ? catzilla Linux - Software 1 10-28-2005 03:57 PM
Simple bash/awk/sed scripting question R00ts Programming 4 04-16-2005 03:55 AM
awk - simple 'for' loop doing my nut... davee Programming 2 06-30-2004 09:54 AM
awk/sed help pantera Programming 1 05-14-2004 12:59 AM

All times are GMT -5. The time now is 03:59 PM.

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