
shell/lua
伍铭
My life for aiur
展开
-
curl个人常用方法小结,持续更新
post方法发送注册信息 curl -d "username=json&passwork=abcdefgh" http://www.wordwide.com/regist 优先通过ipv4解析目标网址,超时时间设为3秒 curl --connect-timeout 3 -d "username=json&passwork=abcdefgh" http://www.wordwide.com/regist -4 指定为post方式发送请求并附带文件 curl -X POST -F原创 2020-07-06 17:53:46 · 281 阅读 · 0 评论 -
shell 自己常用的语法
替换字符 sed 's/:/ /g' #把:换成空格 tr'\n''#' #把换行换成# 获取行数/字段数/字数 wc -w wc -c # -c Count bytes # -l Count newlines # -w Count words # -L Print longest line length 判断 if [ $1 = "bind_key" ] && [ !..原创 2020-06-23 17:32:22 · 251 阅读 · 0 评论 -
lua 获取shell执行结果 进行字符串分割
function popen_command_info(command) local command_info local command_info_fd = io.popen(command, "r") if command_info_fd then while true do command_info = command_info_fd:read("*l") if command_info then break e.原创 2020-06-17 11:53:49 · 1233 阅读 · 0 评论