Skip to content

Instantly share code, notes, and snippets.

@vaijab
Created November 25, 2015 17:46
Show Gist options
  • Save vaijab/88325b55371b819b61e3 to your computer and use it in GitHub Desktop.
Save vaijab/88325b55371b819b61e3 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
files="*.service"
for fname in ${files}; do
[[ -e ${fname} ]] || continue
read -r h f <<< $(md5sum ${fname})
echo ""${f/%.service/@${h}.service}""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment