We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Text Processing
- 'Uniq' Command #1
'Uniq' Command #1
'Uniq' Command #1
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.
Sample Input
00
00
01
01
00
00
02
02
Sample Output
00
01
00
02