Skip to content

Instantly share code, notes, and snippets.

@tobiashm
Created July 13, 2016 14:30
Show Gist options
  • Save tobiashm/712cf4316a852415ab8c8a577dc8033f to your computer and use it in GitHub Desktop.
Save tobiashm/712cf4316a852415ab8c8a577dc8033f to your computer and use it in GitHub Desktop.
Create a tag name from current directory
#!/bin/bash
tag_name="$(echo -e "${PWD##*/}" | tr -cd '[:alnum:]')"
echo $tag_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment