First page Back Continue Last page Overview Graphics
Finding unique fields, sorting, counting
sort <filename>
- Alphanumeric sort (both characters and numbers)
uniq finds lines that are not repeated in a file
- only works on sorted files
- $ uniq sorted_file
wc counts characters, words, or lines of a file
- $ wc -c <file>
- $ wc -w <file>
- $ wc -l <file>
Notes: