- 博客(3)
- 收藏
- 关注
原创 sed非贪婪匹配
data.json{"State":1,"Message":"ok","Result":{"time1":["05-30","05-31"],"Temperature":[26,26],"Humidity":[50,49]}}cat /mnt/sdcard/myweb/esp-data.json |sed '6s/\[.[^",]*",/\[/1'{"State":1,"Message":"ok","Result":{"time1":["05-30"],"Temper
2020-05-30 00:45:04
1415
2
原创 天猫精灵打开电脑(网络唤醒)
方法一:家里路由为openwrt或有树莓派之类支持cgi设备时#!/bin/shprintf “Content-type: text/plain\n\n”echo “{“returnCode”: “0”,“returnErrorSolution”: “”,“returnMessage”: “”,“returnValue”: {“reply”: “正在打开电脑”,“resultTy...
2020-02-08 16:56:28
3956
原创 脚本重启电信天翼网关
echo “Content-type:text/html;charset=UTF8\n”echo “”loginfo=curl -s -L http://192.168.1.1/cgi-bin/luci -X POST -c cookies.txt -d 'username=用户名&psd=密码'function mygetip(){ipinfo=curl -s -b cooki...
2020-02-08 16:30:42
3677
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人