Skip to content

Instantly share code, notes, and snippets.

@KernelPanicAUS
Created August 11, 2015 05:54
Show Gist options
  • Select an option

  • Save KernelPanicAUS/d90bca0926a87987b2ac to your computer and use it in GitHub Desktop.

Select an option

Save KernelPanicAUS/d90bca0926a87987b2ac to your computer and use it in GitHub Desktop.
Renames groovy files
#!/bin/bash
for FILE in $(ls | grep 'groovy'); do
CHANNEL_NAME=$(echo $FILE | cut -d '-' -f1)
mv $FILE $CHANNEL_NAME.groovy
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment