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

2 lines
49 B
Bash

echo ${${str#?}%?} # Remove first & last chars