#!/bin/bash
# ${string:position}, ${string:position:length}
string="Welcome to the geekstuff"
echo ${string:15} # Outputs: geekstuff
echo ${string:15:4} # Outputs: geek
#!/bin/bash
# ${string:position}, ${string:position:length}
string="Welcome to the geekstuff"
echo ${string:15} # Outputs: geekstuff
echo ${string:15:4} # Outputs: geek