HackerRank - 'Uniq' Command #1
April - 25/2025Problem:
In this challenge, we practice using the uniq command to eliminate consecutive repetitions of a line when a text file is piped through it. Given a text file, remove the consecutive repetitions of any line.
# Input
- 00
- 00
- 01
- 01
- ...
# Output
- 00
- 01
- 00
- 02
# Solution
uniq