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 / rhino

Small correction to Answer #3 If the line is repeated in
the very next line it will be removed , Else this will be
displayed as if it is a new number

Ex. as below -- This has been cross checked before answering


Ex : File duplitest has below lines

RohiBaby
RohiBaby
GunduBaby
ChinniBaby
RohiBaby
Rohith

cmd. : cat duplitest | uniq -- Gives below o/p

RohiBaby
GunduBaby
ChinniBaby
RohiBaby
Rohith

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do know about tee command and its usage?

1184


What is the size of time_t?

1214


What is the significance of the 'tee' command?

1202


What is command statement?

1179


What is command substitution?

1366


Which command is used to delete all files in the current directory and all its sub-directories?

1259


How do I use grep to search for a file?

1056


Explain ‘system calls’ with respect to unix commands?

1097


What do chmod command do?

1224


Why is grep called grep?

1301


How do I search for a file in unix command?

1021


How do I run a bash script?

1186


Write a command that will display files in the current directory, in a colored, long format.

1224


What is nr in awk command?

1206


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1244