Timeline for Sort words in file
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 16, 2016 at 23:10 | comment | added | Jeff Schaller♦ | Search this site for ways that people pass variables into awk. Look for -v | |
| Jan 16, 2016 at 23:04 | comment | added | gigiman | @JeffSchaller ok , but if X is a parameter given as an input? | |
| Jan 16, 2016 at 22:48 | comment | added | Jeff Schaller♦ | If you've sorted and uniq -c'd, then one way would be to use awk to ask if field 2 is greater than X | |
| Jan 16, 2016 at 21:55 | comment | added | gigiman | But what about if let's say i need to print the words that have more than x apperances ? | |
| Jan 16, 2016 at 20:24 | comment | added | Jeff Schaller♦ |
head -n 10 will give you the first 10 lines of a file; that may help you solve the extra piece
|
|
| Jan 16, 2016 at 20:06 | history | answered | gigiman | CC BY-SA 3.0 |