Anonymous user
Substring/Top and tail: Difference between revisions
→{{header|UNIX Shell}}
(Added zsh solution) |
|||
Line 786:
echo ${str%?} # Remove last char
echo ${${str#?}%?} # Remove first & last chars
</lang>
=={{header|Vala}}==
|