Skip to content

Instantly share code, notes, and snippets.

@floreo
Last active September 14, 2016 17:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floreo/e26f86a28e0d09ee9925 to your computer and use it in GitHub Desktop.
Save floreo/e26f86a28e0d09ee9925 to your computer and use it in GitHub Desktop.
[teeworlds] Generate an add_vote for sv_map out of your maps folder (quick and dirty)
#!/bin/bash
# first, cd to your maps folder then execute this one liner
ls *.map | while read _map; do _m="$(echo $_map | awk -F '.' '{print $1}')"; echo "add_vote \"change map to $_m\" sv_map $_m"; done >> add_vote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment