Download presentation
Presentation is loading. Please wait.
1
uniq command 6/12/2015Gary DeRoest1 report or filter out repeated lines in a file Note: the file needs to be sorted so that repeated lines are adjacent to each other. -c Precede each output line with the count of the number of times the line occurred. -d Don't output lines that are not repeated in the input. -u Don't output lines that are repeated in the input. uniq [-c -d -u] filename
2
uniq 6/12/2015Gary DeRoest2 report or filter out repeated lines in a file bob frank sue trish uniq names names bob frank sue trish
3
uniq 6/12/2015Gary DeRoest3 report or filter out repeated lines in a file frank sue uniq -u names names bob frank sue trish
4
uniq 6/12/2015Gary DeRoest4 report or filter out repeated lines in a file bob trish uniq -d names names bob frank sue trish
5
uniq 6/12/2015Gary DeRoest5 report or filter out repeated lines in a file 2 bob 1 frank 1 sue 2 trish uniq -c names names bob frank sue trish
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.