# Print cat file_name | tr " " "\n"| sort | uniq # Count cat file_name | tr " " "\n" | sort | uniq -c # tr " " "\n" used here to replace space with newline, what it does is to put every word separated by space into a line
Print/Count Unique Words in a File Using Command Line
Here is a one-line-command used to print/count unique words in a file:
Subscribe to:
Post Comments (Atom)
Datatable static image not found on the server
When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...
-
Here is the example of installation of Hadoop on a single machine, UBuntu box in this case. For a simple cluster installation, please refere...
-
Prepare the environment Before configure and compile R source code, I did the following updating of CentOS in order to support R capabilitie...
-
Here are the simple steps, I used to update eclipse to Kepler on my Ubuntu 12.04.3 box. 1. download the appropriate package of eclipse from...
No comments:
Post a Comment