Welcome to the most active Linux Forum on the web.
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, 03: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, 03: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 03:51 PM
how to delete duplicates entries in xml file using sed/awk/sort ? catzilla Linux - Software 1 10-28-2005 02:57 PM
Simple bash/awk/sed scripting question R00ts Programming 4 04-16-2005 02:55 AM
awk - simple 'for' loop doing my nut... davee Programming 2 06-30-2004 08:54 AM
awk/sed help pantera Programming 1 05-13-2004 11:59 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:41 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
Open Source Consulting | Domain Registration