17 lines
298 B
Bash
Executable File
17 lines
298 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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
|
|
}
|