- 博客(4)
- 收藏
- 关注
原创 mac git上传本地库到GitHub 遇到“Please make sure you have the correct access rights and the repository exist”
先 ssh -T git@github.com如果出现successful *******等等字符则证明此时你的ssh的密钥设置是没问题的其次在遇到这个问题的时候!请你检查下你仓库中文件是否都已经从工作区转移到分支中了git status 查看当前状态来确认如果没有,请同步如果你修改了库中文件的内容,如果你没有同步到分支中,那么修改的内容只是在工作区中,此时你上传本地库,就会遇到...
2019-11-02 00:44:26
836
原创 常用的sed命令
/pattern/p 打印匹配pattern的行/pattern/d 删除匹配pattern的行/pattern/s/pattern1/pattern2 /g 查找符合pattern的行,将该行的第一个pattern1替换成pattern2/pattern/s/pattern1/pattern2/g 查找符合pattern的行,将该行的所有的pattern1替换成pattern...
2019-08-11 19:31:50
173
转载 shell中exec 、xargs与管道之间的区别
xargs1、作用:将前一个命令的结果作为参数传给下一个命令,能够接受大量参数传送,比如可以参数数量一百万,这是就只能使用xargs了,而exec就不可以了2、使用模式:front command | xargs -option latercommandfront command: 前一个命令-option: xargs的选项later command: 后一个命令一般与管道“|”结...
2019-08-11 19:22:04
276
原创 shell 使用while中遇到错误./t3.sh: line 8: [1: command not found
shell的while使用特别注意事项(未完待续…)**注意:while循环中中括号内前后都有空格,不然会报错**出现类似这样的问题切记注意while循环控制条件里的格式是否正确...
2019-08-10 20:13:31
1660
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人