Created
December 7, 2009 23:29
-
-
Save afh/251231 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% cat <<EOF > a.tl | |
--european | |
D h0.000,00 | |
i 2009/12/07 08:00:00 Task A:1 | |
o 2009/12/07 09:00:00 end task | |
i 2009/12/07 09:00:00 Meeting | |
o 2009/12/07 10:30:00 end task | |
EOF | |
% cat <<EOF > b.tl | |
--european | |
D h0.000,00 | |
i 2009/12/07 08:00:00 Task B:1 | |
o 2009/12/07 09:00:00 end task | |
i 2009/12/07 09:00:00 Meeting | |
o 2009/12/07 10:30:00 end task | |
EOF | |
% cat <<EOF > c.tl | |
--european | |
D h0.000,00 | |
i 2009/12/07 08:00:00 Task C:1 | |
o 2009/12/07 08:30:00 end task | |
i 2009/12/07 08:30:00 Task C:2 | |
o 2009/12/07 09:00:00 end task | |
i 2009/12/07 09:00:00 Meeting | |
o 2009/12/07 10:30:00 end task | |
EOF | |
% cat <<EOF > timelog.tl | |
account Account_A | |
!include a.tl | |
end account | |
account Account_B | |
!include b.tl | |
end account | |
account Account_C | |
!include c.tl | |
end account | |
EOF | |
% ledger -f timelog.tl bal | |
4,50h Meeting | |
1,00h Task A:1 | |
1,00h Task B:1 | |
1,00h Task C | |
30,0m 1 | |
30,0m 2 | |
-------------------- | |
7,50h | |
I would expect something along the lines of: | |
2,50h Account_A | |
1,50h Meeting | |
1,00h Task A:1 | |
2,50h Account_B | |
1,50h Meeting | |
1,00h Task B:1 | |
2,50h Account_C | |
1,50h Meeting | |
1,00h Task C | |
30,0m 1 | |
30,0m 2 | |
-------------------- | |
7,50h | |
which is what I get when using this setup: | |
% cat <<EOF > a.tl | |
account Account_A | |
--european | |
D h0.000,00 | |
i 2009/12/07 08:00:00 Task A:1 | |
o 2009/12/07 09:00:00 end task | |
i 2009/12/07 09:00:00 Meeting | |
o 2009/12/07 10:30:00 end task | |
end account | |
EOF | |
% cat <<EOF > b.tl | |
account Account_B | |
--european | |
D h0.000,00 | |
i 2009/12/07 08:00:00 Task B:1 | |
o 2009/12/07 09:00:00 end task | |
i 2009/12/07 09:00:00 Meeting | |
o 2009/12/07 10:30:00 end task | |
end account | |
EOF | |
% cat <<EOF > c.tl | |
account Account_C | |
--european | |
D h0.000,00 | |
i 2009/12/07 08:00:00 Task C:1 | |
o 2009/12/07 08:30:00 end task | |
i 2009/12/07 08:30:00 Task C:2 | |
o 2009/12/07 09:00:00 end task | |
i 2009/12/07 09:00:00 Meeting | |
o 2009/12/07 10:30:00 end task | |
end account | |
EOF | |
% cat <<EOF > timelog.tl | |
account Account_A | |
!include a.tl | |
!include b.tl | |
!include c.tl | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment