Improve sorting
This commit is contained in:
parent
a282d6a0c6
commit
db37ea2f51
|
@ -58,7 +58,7 @@ cp $GPATH/tpl/css/wallets_balance.css $WEBPATH/css/
|
||||||
cp $GPATH/tpl/js/wallets_balance.js $WEBPATH/js/
|
cp $GPATH/tpl/js/wallets_balance.js $WEBPATH/js/
|
||||||
cp $GPATH/tpl/wallets_balance.html $WEBPATH/data/wallets_balance.html
|
cp $GPATH/tpl/wallets_balance.html $WEBPATH/data/wallets_balance.html
|
||||||
|
|
||||||
sort -nr <<<"$htmlBloc" > /tmp/solde_g1_html.txt
|
sort -Vr <<<"$htmlBloc" > /tmp/solde_g1_html.txt
|
||||||
printf '%s\n' '/_LINE/r /tmp/solde_g1_html.txt' 1 '/_LINE/d' w | ed $WEBPATH/data/wallets_balance.html > /dev/null
|
printf '%s\n' '/_LINE/r /tmp/solde_g1_html.txt' 1 '/_LINE/d' w | ed $WEBPATH/data/wallets_balance.html > /dev/null
|
||||||
sed -i "s/_DATE/$(date '+%d-%m-%Y')/g" $WEBPATH/data/wallets_balance.html
|
sed -i "0,/_DATE/s//$(date '+%d-%m-%Y')/" $WEBPATH/data/wallets_balance.html
|
||||||
rm /tmp/solde_g1_html.txt
|
rm /tmp/solde_g1_html.txt
|
||||||
|
|
|
@ -18,3 +18,5 @@ Données générés le _DATE<br>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
_DATE
|
||||||
|
|
Loading…
Reference in New Issue