Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

awk only first six letters

$ cat file1
abc|ABC|123456789|QWERTZ
abc|ABC|1|QWERTZ
abc|ABC|0|QWERTZ
abc|ABC|123456789|QWERTZ

$ awk -F| '$3 > 0 { print substr($3,1,6)}' file1
123456
1
123456
Comment

PREVIOUS NEXT
Code Example
Shell :: warp out files in linux 
Shell :: could not open tor as root in kali 
Shell :: desktop trigger click bash shell ubuntu 
Shell :: github gitattributes ignore files for statistics 
Shell :: how to install data purifer 
Shell :: install calliope on mac 
Shell :: install vivaldi on linux mint 
Shell :: expo react native init 
Shell :: create alias ubuntu 
Shell :: add desktop entry ubuntu 
Shell :: tfswitch install 
Shell :: docker build no cache layer dockerfile --no-cache "docker-compose" context 
Shell :: git diff more colorful 
Shell :: add description to commit git 
Shell :: get the latest file in a directory powershell 
Shell :: git log with author oneline 
Shell :: microPY lib 
Shell :: get filebeat version 
Shell :: linux list directories 
Shell :: jupyter notebook not rendering permission denied ubuntu 
Shell :: how to remove unused pip dependencies on mac 
Shell :: branch on carry clear 
Shell :: how to install virtualbox through terminal 
Shell :: ngx-bootstrap npm 
Shell :: only show first lines linux 
Shell :: linux remove empty lines 
Shell :: Deploy all file and subfolder git cpanel 
Shell :: posh git install windows 
Shell :: ubuntu check whats taking space 
Shell :: react-router-breadcrumbs-hoc@^3.2.3 yarn upgrade 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =