RosettaCodeData/Task/Substring-Top-and-tail/UNIX-Shell/substring-top-and-tail-1.sh
2023-07-01 13:44:08 -04:00

3 lines
89 B
Bash

str='abcdefg'
echo "${str#?}" # Remove first char
echo "${str%?}" # Remove last char