Skip to content

Instantly share code, notes, and snippets.

@davidlukac
Last active March 22, 2016 14:33
Show Gist options
  • Save davidlukac/a58011a3c8c8c1dce63f to your computer and use it in GitHub Desktop.
Save davidlukac/a58011a3c8c8c1dce63f to your computer and use it in GitHub Desktop.
Shell - related
# The snippet ads timestamp to every line of the output.
drush @site.aloas solr-index | awk -v now="$(date +"%Y-%m-%d %r")" '{ print now ":\n" $0; fflush(); }' | tee -a drush-index.log`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment