I highlighted the parts that take care of the number:
Code:
awk '/\[ \]/ {n=$1; $1=$2=$3=""; printf("%s;%s; ",n,$0); getline; print $0}' file.txt
So if you get rid of that:
Code:
$ awk '/\[ \]/ {$1=$2=$3=""; printf(";%s; ",$0); getline; print $0}' file.txt
; Test Task; Due Date: Fri, May 03, 2013
; Another Test Task; Due Date: Fri, May 03, 2013
Alternatively, you can also use this other version:
Code:
awk '/\[ \]/,gsub("^.*]","") {printf(";%s; ",$0); getline; print $0}' file.txt
Let us know if you need more details to understand the code.
Regards.
Bookmarks