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

Write a command to display a file’s contents in various formats?

1148


Which command can you use to find the currently running process in unix server?

1069


What is the behavioural difference between cmp and diff commands?

1211


Explain command to view process running?

1066


What are the differences among a system call, a library function, and a unix command?

1147


What does sed command do in unix?

1113


How can we use grep command in unix?

1139


What is awk used for?

1077


What is grep in bash?

1006


What is the use of the tee command?

1053


Explain command to display different lines that are found when compare two files?

1105


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1249


How do you repeat a command in terminal?

1151


What do chmod command do?

1136


How do I use grep to find a file?

1057