Horje
bash split string into variables Code Example
bash split string into variables
# separator is space
VAR="inforge srl bergamo"
read -r ONE TWO THREE <<< "${VAR}"
echo ${ONE}
echo ${TWO}
echo ${THREE}

# separator is comma
VAR="inforge,srl,bergamo"
IFS="," read -r ONE TWO THREE <<< "${VAR}"
echo "${ONE} ${TWO} ${THREE}"




Shell

Related
lines count linux Code Example lines count linux Code Example
prettier code formatter is removing ; Code Example prettier code formatter is removing ; Code Example
No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration prettier Code Example No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration prettier Code Example
vscode prettier show errors Code Example vscode prettier show errors Code Example
how to get the number of lines in a file Code Example how to get the number of lines in a file Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12