
笔记
#!浪未尽
这个作者很懒,什么都没留下…
展开
-
shell中变量添加字符
通过shell下简单的验证发现:[root@localhost mem_test]# a=xx[root@localhost mem_test]# (c=b;echo $a$c)xxb[root@localhost mem_test]# echo $axx[root@localhost mem_test]# echo $ab[root@localhost mem_test]# echo "$a"bxxb[root@localhost mem_test]# echo "$a"bxx.原创 2021-12-10 13:56:27 · 2800 阅读 · 0 评论 -
shell/linux 变量中去除字母
shell/linux 变量中去除字母 tr -d “a-zA-Z”echo $variable|tr -d “a-zA-Z”原创 2021-12-07 15:26:09 · 832 阅读 · 0 评论 -
Shell/linux下删除固定列
cat file |awk ’ { $5=null;print $0}’删除固定列的方式原创 2021-10-10 17:30:17 · 629 阅读 · 0 评论