Skip to content

Instantly share code, notes, and snippets.

@Songmu
Created February 13, 2018 04:23
Show Gist options
  • Save Songmu/f22ca23dde990c4c928d3633e498f9dd to your computer and use it in GitHub Desktop.
Save Songmu/f22ca23dde990c4c928d3633e498f9dd to your computer and use it in GitHub Desktop.
原稿の文字数をカウントするMackerelプラグイン
#!/bin/sh
export LANG=ja_JP.UTF-8
export LC_ALL=ja_JP.UTF-8
words=$(cat /path/to/*.md | wc -m)
echo "writing.chars.hogehoge $words " $(date +%s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment