You know what to do:)

#!/bin/bash
Server="127.0.0.1:8080"

Parameter="\"user>>>${1}@v2ray.com>>>traffic>>>${2}link\""
Parameter="api --server=\"${Server}\" StatsService.GetStats 'name: ${Parameter} reset: false'"
Bytes=`echo ${Parameter} | xargs /usr/bin/v2ray/v2ctl | grep value | cut -d' ' -f 4`
numfmt --to=iec-i --suffix=B ${Bytes}
Last modification:May 30th, 2019 at 12:30 pm
(๑´ڡ`๑)