summaryrefslogtreecommitdiff
path: root/kanbanscripts/addtask.sh
blob: 499784b1b840b19a30d3a5ab6d3fc7b439642869 (plain)
1
2
3
4
5
6
7
8
9
#! /bin/sh
FILENAME="$HOME/gtd/${2:-WIR} - $1.txt"
echo $FILENAME
touch "$FILENAME"
echo "@recorded:$(date '+%Y-%m-%d')" >> "$FILENAME" 
if [ $# -eq 3 ]
  then
      printf "$3" >> "$FILENAME"
fi