Skip to content
rakshasa edited this page Dec 21, 2021 · 15 revisions

rbedit

A dependency-free bencode editor

Synopsis

A statically compiled and dependency-free Bencode editor in Go, useful for command line use and scripts.

To enable bash completions add the following to your ~/.bash_profile file:

. <(./build/rbedit-darwin-amd64 completion bash --no-descriptions)

Usage

Examples

Print tracker announce URL:

$ rbedit announce get --input ./slackware-14.2-install-d1.torrent
http://trackers.transamrit.net:8082/announce

Change tracker announce URL:

$ rbedit announce put --input ./slackware-14.2-install-d1.torrent --inplace http://example.com/announce
$ rbedit announce put --input ./slackware-14.2-install-d1.torrent --output ./new.torrent http://example.com/announce

Add tracker URL to announce list:

$ rbedit announce-list get --input ./slackware-14.2-install-d1.torrent
0: http://tracker1.transamrit.net:8082/announce
0: http://tracker2.transamrit.net:8082/announce
0: http://tracker3.transamrit.net:8082/announce

$ rbedit announce-list append-tracker --input ~/Downloads/slackware-14.2-install-d1.torrent --output ./test.torrent 0 http://0.example.com/announce

$ rbedit announce-list get --input ./test.torrent
0: http://tracker1.transamrit.net:8082/announce
0: http://tracker2.transamrit.net:8082/announce
0: http://tracker3.transamrit.net:8082/announce
0: http://0.example.com/announce

Available Commands

  announce      BitTorrent announce related commands
  announce-list BitTorrent announce-list related commands
  get           Get object
  hash          SHA256 hashing commands
  put           Put object
  remove        Remove object

Options

  -h, --help   help for rbedit

SEE ALSO

Clone this wiki locally