NOTE: Some pages on this site rely on JavaScript. It's not currently available in your browser/reader. Depending on the page, some or all of the content may not work correctly without it.
NOTE: This site use JavaScript which appears to be turned off. Some content will be fine, but some things won't work.
#!/bin/bash EXAMPLE_PATH="path/to/example-file.txt" BASENAME=$(basename "$EXAMPLE_PATH") STEM="${BASENAME%.*}" echo $STEM
example-file