Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: where is zshrc 
Shell :: change remote repository git 
Shell :: ubuntu get ram usage 
Shell :: how to activate administrator account in windows 10 command prompt 
Shell :: install python3 raspberry pi 
Shell :: terminator default terminal 
Shell :: terminal unzip 
Shell :: know kernel version linux mint 
Shell :: cent os mariadb remove complete 
Shell :: ip address in variable 
Shell :: remove git repository vscode 
Shell :: linux typing hebrew 
Shell :: how to download mavem 
Shell :: my comment on githbu isues 
Shell :: unexpected MongoDBDriverExceptionConnectionException thrown from a caster: Server reports wire version 5, but this version of libmongoc requires at least 6 (MongoDB 3.6)", 
Shell :: command to upgrade upgradable packages on Ubuntu 
Shell :: rust download 
Shell :: remove global configuration in git 
Shell :: find gradle version 
Shell :: sudo without password linux 
Shell :: git log with author oneline 
Shell :: Ndless SDK 
Shell :: get unpushed commits 
Shell :: how to run sudo without password 
Shell :: last return code linux 
Shell :: how to push code in the github repo for the first time 
Shell :: remove gitignore cache 
Shell :: default field separator recognized by awk 
Shell :: foreach loop powershell 
Shell :: git pasar de https a ssh 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =