-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
function todo -d "Manage CSV todo lists"
switch $argv[1]
case +
echo "$argv[3..],$(date -Is)," >>$argv[2]
case -
sed -i "$argv[3]s/\$/$(date -Is)/w/dev/stdout" $argv[2]
case =
grep -n ',$' --color=always $argv[2..] | cut -d, -f-1
end
end