Skip to content

Instantly share code, notes, and snippets.

@aidvu
Created January 15, 2015 20:26
Show Gist options
  • Save aidvu/1a1a424b0c4bbad5eeb1 to your computer and use it in GitHub Desktop.
Save aidvu/1a1a424b0c4bbad5eeb1 to your computer and use it in GitHub Desktop.
SugarCRM Language Files Extractor
#!/bin/bash
echo "This script copies SugarCRM translation files for given language code from current directory to destination directory"
echo ""
echo "Enter language code:"
read language
echo "Enter destination directory:"
read destination_dir
rsync -uavm --include="*/" --include="*$language*" --exclude="*" . $destination_dir/$language
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment