Skip to content

Instantly share code, notes, and snippets.

View DasLeo's full-sized avatar

Philipp Leonhardt DasLeo

  • Haiilo GmbH
  • Norderstedt, Germany
View GitHub Profile
@DasLeo
DasLeo / bash-path-vars
Created February 23, 2020 06:32 — forked from caruccio/bash-path-vars
Path manipulation with bash vars
$ FILE=/some/path/to/file.txt
###################################
### Remove matching suffix pattern
###################################
$ echo ${FILE%.*} # remove ext
/some/path/to/file
$ FILE=/some/path/to/file.txt.jpg.gpg # note various file exts