# 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...
-
Step 1. Install Oracle XE 11g 1. Download Oracle XE (oracle-xe-11.2.0-1.0.x86_64.rpm.zip) from Oracle official website. You need an accoun...
-
When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...
-
How to left align Oracle sub-regions Create more than one sub-regions, for example 3 of them, namely query1, query2 and query3. Modify gri...
No comments:
Post a Comment