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