Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

awk delimiter semi-colon

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 :: count unique ip addresses linux accsses log 
Shell :: github save init repository to remote 
Shell :: how to make apache2 not autorestat when startup 
Shell :: docker install ubuntu 
Shell :: sort numbers in bash 
Shell :: laravel nginx 404 not found 
Shell :: re-entering top level after c stack overflow 
Shell :: Failed to build logging Installing collected packages: logging Running setup.py install for logging ... error 
Shell :: install imutils ubuntu 
Shell :: ghc change version 
Shell :: How to Enable the Ultimate Performance 
Shell :: delete all empty files and folders in terminal 
Shell :: install shutter for ubuntu screenshot 
Shell :: how to install brew on jelastic 
Shell :: alfred intellij toolbox 
Shell :: curl cookie get 
Shell :: how to write red text in readme in github 
Shell :: linux ssh 
Shell :: -windows run script on program close 
Shell :: bash pid background process 
Shell :: tasksel 
Shell :: stop raid array linux 
Shell :: git remote add origin 
Shell :: chmod using find in bash 
Shell :: alternative to awk 
Shell :: mnt d wsl 
Shell :: installing mysql on aws using putty terminal 
Shell :: git push main 
Shell :: shopware 6 build storefront 
Shell :: Running a local script on a remote machine (or remote on local) 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =