File indexing completed on 2024-12-22 04:50:58
0001 #!/bin/bash 0002 if [[ $1 = "ls" ]]; then 0003 #Simulate: boobank ls -q -f csv -v -s id,balance 0004 echo "id;label;balance" 0005 echo "12345@creditcooperatif;;1523.99" 0006 echo "47896@creditcooperatif;;" 0007 else 0008 if [[ $5 = "12345@creditcooperatif" ]]; then 0009 #Simulate: boobank -q -f csv history "47896@creditcooperatif" -s rdate,type,raw,label,amount --condition "rdate>%4" -n 99999 0010 echo "rdate;date;type;raw;label;amount" 0011 echo "2013-05-04;2013-05-04;0;TOTAL;TOTAL;-50.48" 0012 echo "2013-05-20;2013-05-20;1;SNCF;SNCF;-17" 0013 echo "2013-05-26;2013-05-26;1;CAF;CAF;120.25" 0014 else 0015 #Simulate: boobank -q -f csv history "47896@creditcooperatif" -s rdate,type,raw,label,amount --condition "rdate>%4" -n 99999 0016 echo "rdate;date;type;raw;label;amount" 0017 echo "2013-05-04;2013-05-04;0;TOTAL;TOTAL;-10" 0018 echo "2013-05-20;2013-05-20;1;SNCF;SNCF;-20" 0019 fi 0020 fi