Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

awk columns

File: 
0.9848077530  -0.1736481777 0.9396926208  
0.9848077530  -0.1736481777 0.9396926208  
0.9848077530  -0.1736481777 0.9396926208 

cat file | awk '{print $1}' 
cat file | awk '{print $2 $3}'
cat file | awk '{print $NF}' # last colomn
cat file | awk '{print $(NF-2)}'  # two column before the last

Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu hide home folder on desktop 
Shell :: windows show environment variables powershell 
Shell :: increment in bash 
Shell :: debian search entire system for file 
Shell :: ubuntu permission all file in folder 
Shell :: run bash script on zsh 
Shell :: sed remove line after match 
Shell :: git delete remote name 
Shell :: install brew on mac terminal 
Shell :: install brew on mac m1 
Shell :: install Fdisk 
Shell :: scikit-learn python 
Shell :: how to run docker not with sudo 
Shell :: pip install git branch 
Shell :: unix change timestamp of file 
Shell :: git empty commit 
Shell :: where is www folder ubuntu 
Shell :: get additional parameters linux scripting 
Shell :: shell nohup 
Shell :: terminal copy to clipboard linux 
Shell :: ssh to k8s pod 
Shell :: install flask 
Shell :: http sever with ssl start 
Shell :: raspberry pi change permissions /var/www 
Shell :: QSslSocket: cannot resolve CRYPTO_set_id_callback QSslSocket: cannot resolve CRYPTO_set_locking_callback QSslSocket: cannot resolve sk_free QSslSocket 
Shell :: install scikit learn 
Shell :: git update gitignore remove files 
Shell :: git revert one file 
Shell :: all git commands 
Shell :: grep exclude 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =