Skip to content

Instantly share code, notes, and snippets.

@voischev
Last active August 29, 2015 14:02
Show Gist options
  • Save voischev/9bea6390c5e1f0d37676 to your computer and use it in GitHub Desktop.
Save voischev/9bea6390c5e1f0d37676 to your computer and use it in GitHub Desktop.
Переименование файлов по маске из командной строки
#!/bin/bash
find . -type f \( -name '*.roo' -or -name '*.css' \) -not -path './desktop.bundles/*' -print -exec sh -c 'file={}; newfile="${file/%.roo/.styl}"; mv "$file" "$newfile";' \; | xargs find
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment