Linux UNIQ command
On Unix-like operating systems, the
For the sake of simplicity, we suppose that each line consists of at most 2k characters. The number of input lines is not restricted.
The output contains the input lines but only once if they are repeated.
Output for Sample Input
Hints and Guide
Because the length of the input lines are limited, we can easily solve the exercise line by line, reading an input line, for example with the help of the
One possible solution is available in: main.c.
Acknowledgement This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
|University of Debrecen; Faculty of Informatics; v. 03/01/2019|