![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
QQ2856639881
这个作者很懒,什么都没留下…
展开
-
使用shell从文件中提取字符串
config.jsconst map_key = 'GILBZ-QJTCK' const appid = "wwwwwww"export default{...}提取 appid的值#! /bin/bash #从config.js读取appidFIND_FILE="../config.js" str=$(sed -n '/appid/p' $FIND_FILE)echo $str #此时得到的是一整行appid=$( sed -n '/appid/p' .原创 2022-05-24 23:02:17 · 1561 阅读 · 0 评论 -
centos 7 常用 / tar 解压缩 压缩
解压tar -xvf file.tartar -xzvf file.tar.gztar -xjvf file.tar.bz2 tar -xZvf file.tar.Z unrar e file.rarunzip file.zip压缩tar -cvf name.tar fil...原创 2019-02-20 09:21:30 · 2288 阅读 · 1 评论