The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
uniq command??? skyineyes UNIX for Dummies Questions & Answers 2 05-28-2008 03:27 AM
using uniq and awk?? amatuer_lee_3 Shell Programming and Scripting 13 05-17-2008 10:10 AM
help on UniQ vishal_ranjan HP-UX 0 06-21-2007 07:33 AM
Help with Last,uniq, sort and cut jay1228 UNIX for Dummies Questions & Answers 1 02-15-2005 09:33 PM
sort/uniq jimmyflip UNIX for Dummies Questions & Answers 3 10-17-2002 02:09 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2008
Read Only
 

Join Date: Jun 2006
Posts: 105
Stumble this Post!
uniq options

Hi
I am currently using uniq -u and uniq -d option in my program to get uniq and duplicate lines from file.

What i doing is
uniq -c file1>file_u
uniq -d file1>file_d
cat file_u file_d > file_fiinal

Since i am procesing a larger files the I/O operations is costly affair.
Hence I would like to know if there is any other option in uniq so that i can
directly use both the options.

Regards
dhana
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0