#!/bin/bash #The external 'cut' command requires starting an new process, this bash internal usage can execute faster # where it can be implimented. list=abcdefghijklmnopqrstuvwxyz echo echo "\$list is $list" echo echo \$\{list\#\#\*i\} is ${list##*i} echo echo \$\{list\%\%i\*\} is ${list%%i*} echo