Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

awk define string as delimiter

Just use function split in awk command to split a line into an array 'a'
using a choosen string as delimiter as for example ", " in next use case:
echo "hi, bye, hey" | awk '{split($0,a,", "); print a[3],a[2],a[1]}'
Comment

PREVIOUS NEXT
Code Example
Shell :: remove untracked files git 
Shell :: change branch git 
Shell :: how to clear gradle cache gitignore 
Shell :: git folder 
Shell :: .bat script on computer startup 
Shell :: gitlab push to create 
Shell :: powershell copy file to remote server 
Shell :: check ubuntu uptime 
Shell :: how to push cloned repo 
Shell :: PowerShell script block 
Shell :: git log --oneline 
Shell :: install zipalign kali linux 
Shell :: powershell global variable 
Shell :: env file firebase 
Shell :: svg to png convert imagemagick 
Shell :: docker copy folder to container 
Shell :: debian 10 sources 
Shell :: unable to delete c2dd1984ad5b (must be forced) - image is being used by stopped container 
Shell :: how to display specific lines from a file in linux 
Shell :: wsl export 
Shell :: how to check raspbian os version 
Shell :: github new repository 
Shell :: clear terminal mac 
Shell :: git modify repository remote url 
Shell :: run node api on rapberry pi 
Shell :: ubuntu cannot access settings 
Shell :: wget recursive ftp 
Shell :: ubuntu add entry to /etc/apt/sources.list 
Shell :: command to transform to asci code bash 
Shell :: git stash retrieve one file 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =