上一页 1 ··· 230 231 232 233 234 235 236 237 238 ··· 403 下一页
摘要: 原文:https://blog.csdn.net/coolfishbone_joey/article/details/119956378 echo 显示内容颜色,需要使用 -e 参数 -e :打开反斜杠转义 (默认不打开) ,可以转义 “\n, \t” 等 -n:在最后不自动换行 str="kimb 阅读全文
posted @ 2022-05-06 11:23 小鲨鱼2018 阅读(598) 评论(0) 推荐(0)
摘要: 1、举例1: root@PC1:/home/test# ls test.sh root@PC1:/home/test# cat test.sh #!/bin/bash read -p "please input a character: " KEY case $KEY in ## 利用变量KEY进行 阅读全文
posted @ 2022-05-06 10:42 小鲨鱼2018 阅读(198) 评论(0) 推荐(0)
摘要: 1、统计频次 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt a a b a b a b b b b [root@localhost test]# awk '{array[$1]++} END {for(i in ar 阅读全文
posted @ 2022-05-05 23:40 小鲨鱼2018 阅读(109) 评论(0) 推荐(0)
摘要: 1、问题vim编辑没有颜色 2、解决方法 [root@localhost test]# rpm -q vim-enhanced package vim-enhanced is not installed [root@localhost test]# yum install vim-enhanced. 阅读全文
posted @ 2022-05-05 22:15 小鲨鱼2018 阅读(434) 评论(0) 推荐(0)
摘要: 问题 1、linux中vim backspace无法向左删除 2、解决方法 [root@localhost test]# echo "set backspace=2" >> ~/.vimrc ## 修改配置文件 3、测试 没有问题。 阅读全文
posted @ 2022-05-05 21:39 小鲨鱼2018 阅读(424) 评论(0) 推荐(0)
摘要: 1、问题 vim 8.2 右键无法粘贴, 进入VISUAL 2、解决方法 [root@localhost ~]# find / -name "defaults.vim" /home/software/vim-8.2.1862/runtime/defaults.vim /usr/share/vim/s 阅读全文
posted @ 2022-05-05 20:59 小鲨鱼2018 阅读(1088) 评论(0) 推荐(0)
摘要: 1、系统 [root@localhost test]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noa 阅读全文
posted @ 2022-05-05 20:35 小鲨鱼2018 阅读(420) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt attatgcccagggtttgttacttcagatgtgtccagagtttctcccttct ggcaggttcatggtcttgctcac 阅读全文
posted @ 2022-05-05 17:19 小鲨鱼2018 阅读(842) 评论(0) 推荐(0)
摘要: 1、系统 [root@centos7pc1 vim-8.2.1862]# hostnamectl Static hostname: centos7pc1 Icon name: computer-vm Chassis: vm Machine ID: d44b8799f26a411a87bb728b10 阅读全文
posted @ 2022-05-05 15:19 小鲨鱼2018 阅读(438) 评论(0) 推荐(0)
摘要: 001、if [root@centos7pc1 test]# ls test.sh [root@centos7pc1 test]# cat test.sh ## 测试脚本,if判断 #!/bin/bash read -p "please input an num:" NUM if [ $NUM -g 阅读全文
posted @ 2022-05-05 11:43 小鲨鱼2018 阅读(97) 评论(0) 推荐(0)
上一页 1 ··· 230 231 232 233 234 235 236 237 238 ··· 403 下一页