uniq command

I need to call the function called foo() using echo command in the same statement. How do I all or invoke the function using the echo statement?

{ 3 comments }

Q. I need to sort data from a log file but there are too many duplicate lines. How do I remove all duplicate lines from a text file under GNU/Linux?

{ 32 comments }