Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

command split by delimiter

#Just use awk specifyingj your own delimiter and which substring to use.
echo 'first delimiter second' | awk -F 'delimiter' '{ $print 0 }'
first 
#0 means first substrin, 1 second, 2 thrird and so on
 
PREVIOUS NEXT
Tagged: #command #split #delimiter
ADD COMMENT
Topic
Name
2+2 =