In one of our earlier articles on awk, we saw how easily awk can parse a file and extract data from it. Shell also has properties with which we can handle text files: files with fields separated by white spaces or CSV files in which the fields are separated by a comma delimiter. Let us see Full Article…
Viewing 1 to 2 of 2 items
Removing Duplicate Lines With Sort, Uniq and Shell Pipes
Use the following syntax: sort {file-name} | uniq -u sort file.log | uniq -u Here is a sample test file called garbage.txt: this is a test food that are killing you wings of fire we hope that the labor spent in creating this software this is a test unix ips as well as enjoy our Full Article…