Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux print one copy of duplicated lines

# Basic syntax:
sort input_file | uniq
# Sort the file first because uniq requires a sorted file to work. Uniq
# then eliminates all duplicated lines in the file, keeping one instance
# of each duplicated line
Source by geek-university.com #
 
PREVIOUS NEXT
Tagged: #linux #print #copy #duplicated #lines
ADD COMMENT
Topic
Name
3+6 =