2014-08-04 09:40:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-10-06 06:26:09 +00:00
|
|
|
if [[ ! -d ~/wconv/native/bin ]]; then
|
2014-08-04 09:40:25 +00:00
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
export PATH=$PATH:~/wconv/native/bin/
|
|
|
|
|
|
|
|
function blog () {
|
|
|
|
if [[ -z 'command -v cj' ]]; then
|
|
|
|
echo "Cannot find cj"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -z "$1" ]]; then
|
|
|
|
__func_head "CONTENT(CJ)"
|
|
|
|
echo
|
|
|
|
else
|
|
|
|
FILE=$(date +%Y%m%d)
|
|
|
|
echo "$1 " | xargs -d' ' cj >> ~/blog/$FILE
|
|
|
|
fi
|
|
|
|
}
|