Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the use of uniq commmand?

Answer Posted / giridhar tarare

uniq command search the uniq data in file and if some
duplicate date then it put only single records in report.

For Example: cat testnumber.txt | uniq <enter>

File contents:
1233
456
678
1233
678

output file shows:
1233
456
678

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the metacharacter mean?

1135


What is pipe command in unix?

1307


What is awk good for?

1136


How does the system know where one command ends and another begins?

2253


Why is it called grep?

1030


Which command is used to find whether the system is 32 bit or 64 bit?

1151


What does the “echo” command do?

1152


How many unix commands are there?

1158


What is used to type command?

1062


Is it inbetween or in between?

1057


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1226


What is the function of grep command in unix?

1184


Which command is used to copy files?

1175


Using unix command how to display no of records in oracle?

1163


What is unix command line?

1256