Skip to content

Instantly share code, notes, and snippets.

@Ajnasz
Created February 25, 2014 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ajnasz/9205651 to your computer and use it in GitHub Desktop.
Save Ajnasz/9205651 to your computer and use it in GitHub Desktop.
#!/bin/bash
str=`grep -o "_t_('[a-z0-9_.]\+" $1 | head -n 1 | cut -c6-500 | rev | cut -d. -f2- | rev`
shift
echo "$str.$@" | sed -e 's/ /./g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment