mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-09 18:49:37 +01:00
124 B
124 B
You can split a string with cut
:
foo="hello-world-bye-world"
bar=$(echo $foo | cut -d"-" -f2)
echo $bar
# world