Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to find max and min in column bash

#min
cat file.dat | sort -nk3,3 | head -1 
							#this will find minumum of column 3
#max 
cat file.dat | sort -nk3,3 | tail -1
						#this will find maximum of column 3 
#to find in column 2 , use -nk2,2 
Comment

PREVIOUS NEXT
Code Example
Shell :: shell create random mac 
Shell :: command to upgrade broken/not upgraded packages on Ubuntu 
Shell :: setting Flask app variable 
Shell :: apache2 default page 
Shell :: delete a pushed commit 
Shell :: terminal mkv to mp4 
Shell :: convert mp4 to hap 
Shell :: how to clone ubuntu 
Shell :: how to install simple screen recorder in fedora 
Shell :: /bin/bash: ./darknet: No such file or directory 
Shell :: undo commit after push 
Shell :: ffmpeg green screen 
Shell :: 20.04 
Shell :: change default boot grub 
Shell :: golang compile with injected variable 
Shell :: cli50 docs 
Shell :: linux which command 
Shell :: copying a file from a server to a local folder 
Shell :: git clone 
Shell :: creating icon for nativescript app 
Shell :: docker db instance workbench connection 
Shell :: wsl localhost not working 
Shell :: howdy install 
Shell :: add conda to sudo path 
Shell :: rsync exclude empty directories 
Shell :: print next 10 lines after grep 
Shell :: Mongodb admin login 
Shell :: crontab view output 
Shell :: create file linux 
Shell :: shell script to convert yaml 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =