BASH小工具(2)

jq

用于命令行处理json数据

  • https://github.com/stedolan/jq
  • https://www.ibm.com/developerworks/cn/linux/1612_chengg_jq/index.html

xmlstarlet

用于命令行处理xml文档

  • https://www.ibm.com/developerworks/cn/xml/x-starlet.html
  • http://xmlstar.sourceforge.net/

断点续传

rsync -P --rsh=ssh myfile.tar 192.168.205.34:/home/myfile.tar
wget --no-check-certificate -c http://192.168.3.36/myfile.tar
curl --insecure -C -o myfile.tar http://192.168.3.36/myfile.tar

直接发送tcp/udp包

dd if=binary.dat bs=160 count=1 > /dev/udp/192.168.2.5/9000
echo '0006303030304e43' | xxd -r -p | nc -l localhost 8181

标签: none

添加新评论

www.000webhost.com