]> gitweb.pimeys.fr Git - scripts-20-100.git/blob - bde/activites.sh
[filter_dirs] Not really anything to say…
[scripts-20-100.git] / bde / activites.sh
1 #!/bin/bash
2
3 # Pour avoir rapidement la liste des activités
4
5 export LESS="-S"
6
7 for i in $@
8 do
9 if [ $i = "--pot" ]
10 then pot=1;
11 fi;
12 done
13
14 if [ "${pot}" = "1" ]
15 then
16 WHERE="WHERE titre ILIKE '%pot%' "
17 fi
18
19 psql note -c "SELECT * FROM activites ${WHERE}ORDER BY debut DESC;"