Horje
bash list the top ten largest values in a column Code Example
bash list the top ten largest values in a column
# Example usage:
sort -k3n,3 input_file | tail -10
# Here we sort the input_file in numerical order based on the third 
# field and then pipe to tail to print the last ten rows. 

# If you only want to return specific fields from the sorted file, pipe
# to cut. E.g. to return the largest values from the third field:
sort -k3n,3 input_file | tail -10 | cut -f 3




Shell

Related
install java 17 ubuntu Code Example install java 17 ubuntu Code Example
bily-101 github Code Example bily-101 github Code Example
linux delete appledouble ds_store files Code Example linux delete appledouble ds_store files Code Example
installation directory must be on local hard drive Code Example installation directory must be on local hard drive Code Example
Homebrew PHP appears not to be linked. Please run [valet use php@X.Y] Code Example Homebrew PHP appears not to be linked. Please run [valet use [email protected]] Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
18