Skip to content

Instantly share code, notes, and snippets.

@rosston
Created July 14, 2017 18:26
Show Gist options
  • Save rosston/6c30b8a3869c70d6bc45f507a9b3ae11 to your computer and use it in GitHub Desktop.
Save rosston/6c30b8a3869c70d6bc45f507a9b3ae11 to your computer and use it in GitHub Desktop.
#!/bin/bash
path="/path/to/some.special.png"
filename=${path%.*}
jpg=$filename.jpg
echo "$jpg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment