pastebin - collaborative debugging tool
rovema.kpaste.net RSS


suffix removal in bash, ksh93, POSIX shj
Posted by Anonymous on Mon 4th Jul 2022 17:16
raw | new post

  1. $ bash -c 'x="foo_disable" ; echo ${x%_disable}'
  2. foo

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at