Skip to content

Netstring encoding and decoding functions for shell scripts

License

Notifications You must be signed in to change notification settings

importpw/netstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

netstring

Netstring encoding and decoding functions for shell scripts.

These functions operate over stdin and stdout so that NULL bytes are not lost in the process.

Example

#!/usr/bin/env import
import "[email protected]"

printf "12:hello world!," | netstring_decode
# hello world!

printf "hello world!" | netstring_encode
# 12:hello world!,

About

Netstring encoding and decoding functions for shell scripts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages