Skip to content

vmesssed

Preston edited this page Oct 26, 2019 · 1 revision

vmesssed

editor for vmess:// subscription, like sed command, works for batch job to a subscription

Usage

./vmesssed.py -h
usage: vmesssed.py [-h] [-s SED] [-i] edit

vmess subscribe file editor.

positional arguments:
  edit               a subscribe text file, base64 encoded or not, or a single
                     vmess:// ss:// link

optional arguments:
  -h, --help         show this help message and exit
  -s SED, --sed SED  the sed command, can be multiple, only the replace form
                     is supported, example: -s 's/find/repl/i' -s 's#remove##'
  -i, --inplace      edit the filein place, like -i to sed command

Examples

# replace "/" in the ps(remarks), replace address from `domain.com` to `domain.net`
# dry run (won't update mysub.txt, for verifying purpose)
./vmesssed.py -s 'ps:s#/#@#' -s 'add:s/domain.com/domain.net/' mysub.txt

# now updates mysub.txt (this time for real)
./vmesssed.py -i -s 'ps:s#/#@#' -s 'add:s/domain.com/domain.net/' mysub.txt

Clone this wiki locally