RosettaCodeData/Task/Substring-Top-and-tail/UNIX-Shell/substring-top-and-tail-4.sh

2 lines
38 B
Bash

tmp=${s#?}; tmp=${tmp%?}; echo "$tmp"