Software >> OS >> Unix >> Shell >> bash >> How to extract a substring by their start and end position

 

# line=1234567890

# echo $line
1234567890

# echo ${line:0:5}
12345