05 2020 档案

摘要:$ echo hengwei-2018 > a.txt $ echo hengwei_2019 >> a.txt # 1 $ for line in `cat a.txt`; do echo $line; done hengwei-2018 hengwei_2019 # 2 $ while read 阅读全文
posted @ 2020-05-26 14:15 衡子 阅读(1095) 评论(0) 推荐(0) 编辑
摘要:#查看配置 echo $PS1 #修改配置: 删除@cloushell和\w export PS1='\[\e]0;${DEVSHELL_PROJECT_ID:-Cloud Shell}\a\]\u:\[\033[1;34m\]$([[ -n $DEVSHELL_PROJECT_ID ]] && p 阅读全文
posted @ 2020-05-19 16:44 衡子 阅读(186) 评论(0) 推荐(0) 编辑
摘要:1. cat ~/.bash_history 2. history -w /dev/stdout 3. history | cut -c 8- 4. fc -l -n 1 | sed 's/^\s*//' 5. history|awk '{$1="";print substr($0,2)}' 阅读全文
posted @ 2020-05-14 10:48 衡子 阅读(1525) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示