Last active
September 14, 2016 17:29
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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