call me regex king not - it broke sup
This commit is contained in:
parent
297efc2402
commit
228edf4461
@ -471,7 +471,7 @@ api_activites(){
|
||||
activities(){
|
||||
echo Current Page: 1
|
||||
echo $API_ACTIVITES | jq -r '["Type","Date","Time","Contact","Amount","Remarks","Status"], ["=====","==========","=====","============","=======","==================","==========="],(.payload | .content | .data | .[] | [.type, .datetime, .creditName, .formattedAmount, .message, .status]) | @tsv' \
|
||||
| sed "s/+05:00//g" | sed "s/[0-9]T[0-9]/ /g" | perl -pe 's/((?<=\t)|(?<=^))\t/ \t/g;' "$@" | column -t -s $'\t' | exec less -F -S -X -K
|
||||
| sed "s/+05:00//g" | perl -pe 's/((?<=\t)|(?<=^))\t/ \t/g;' "$@" | column -t -s $'\t' | exec less -F -S -X -K
|
||||
while true; do
|
||||
echo ""
|
||||
echo Total Pages: $PAGETOTAL
|
||||
@ -483,7 +483,7 @@ activities(){
|
||||
echo Current Page: $PAGENO
|
||||
curl -s -b $COOKIE $BML_URL/activities?page=$PAGENO \
|
||||
| jq -r '["Type","Date","Time","Contact","Amount","Remarks","Status"], ["=====","==========","=====","============","=======","==================","==========="],(.payload | .content | .data | .[] | [.type, .datetime, .creditName, .formattedAmount, .message, .status]) | @tsv' \
|
||||
| sed "s/+05:00//g" | sed "s/[0-9]T[0-9]/ /g" | perl -pe 's/((?<=\t)|(?<=^))\t/ \t/g;' "$@" | column -t -s $'\t' | exec less -F -S -X -K
|
||||
| sed "s/+05:00//g" | perl -pe 's/((?<=\t)|(?<=^))\t/ \t/g;' "$@" | column -t -s $'\t' | exec less -F -S -X -K
|
||||
elif [ "$PAGENO" -gt "$PAGETOTAL" ]
|
||||
then
|
||||
display_banner && display_name && display_userinfo
|
||||
|
Loading…
x
Reference in New Issue
Block a user