Linux tail命令,怎么才能让tail出来的某些内容被替换掉我想要的
开发php习惯用日志文件看,一些数组输出是userinfo=<pre>array(10){["openid"]=>string(28)"*****-o**I7zLU***...
开发php习惯用日志文件看,一些数组输出是
userinfo = <pre>array(10) {
["openid"] => string(28) "*****-o**I7zLU******_YRaDs"
["nickname"] => string(9) "***"
["sex"] => int(1)
["language"] => string(5) "zh_CN"
["city"] => string(7) "Wenzhou"
["province"] => string(8) "Zhejiang"
["country"] => string(2) "CN"
["headimgurl"] => string(123) "http://wx.qlogo.cn/mmopen/f2ZPd7ux***cJcGmP73a***********YO2Xe6IicYFZnvlibbaNibukJFgDgy6gOiaibQu2LiaicTKZQ7LZgCOzPUia7hT5jVWiamQ/0"
["privilege"] => array(0) {
}
["unionid"] => string(28) "oWrS**********goisRePVyrFh1Kdg4Go"
}
一般都是直接tail -f ,就如上面输出,很多这种" >,怎么才能让" 和 >直接被替换成空格或者我想要的内容,望大牛指点!就能不退出tail命令,也能看到希望被替换的内容也能直接显示出来 展开
userinfo = <pre>array(10) {
["openid"] => string(28) "*****-o**I7zLU******_YRaDs"
["nickname"] => string(9) "***"
["sex"] => int(1)
["language"] => string(5) "zh_CN"
["city"] => string(7) "Wenzhou"
["province"] => string(8) "Zhejiang"
["country"] => string(2) "CN"
["headimgurl"] => string(123) "http://wx.qlogo.cn/mmopen/f2ZPd7ux***cJcGmP73a***********YO2Xe6IicYFZnvlibbaNibukJFgDgy6gOiaibQu2LiaicTKZQ7LZgCOzPUia7hT5jVWiamQ/0"
["privilege"] => array(0) {
}
["unionid"] => string(28) "oWrS**********goisRePVyrFh1Kdg4Go"
}
一般都是直接tail -f ,就如上面输出,很多这种" >,怎么才能让" 和 >直接被替换成空格或者我想要的内容,望大牛指点!就能不退出tail命令,也能看到希望被替换的内容也能直接显示出来 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询