上一页 1 ··· 205 206 207 208 209 210 211 212 213 ··· 367 下一页
摘要: 1、 [root@rhel7pc1 test]# ls [root@rhel7pc1 test]# echo $a [root@rhel7pc1 test]# a=100 [root@rhel7pc1 test]# echo $a 100 [root@rhel7pc1 test]# b=a+50 [ 阅读全文
posted @ 2022-04-16 13:30 小鲨鱼2018 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1、$RANDOM $RANDOM 的默认范围是 [0, 32767] [root@rhel7pc1 test]# echo $RANDOM % 100 + 1 | bc 80 [root@rhel7pc1 test]# echo $RANDOM % 100 + 1 | bc 10 [root@rh 阅读全文
posted @ 2022-04-16 11:46 小鲨鱼2018 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1、linux中awk中next命令相当于循环语句中的continue [root@centos7 test2]# seq 6 1 2 3 4 5 6 [root@centos7 test2]# seq 6 | awk '$0 ~ /5/ {next}; {print $0}' ## 当前行匹配5的 阅读全文
posted @ 2022-04-15 11:41 小鲨鱼2018 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1、测试 数据 [root@centos7 test2]# ls a.txt [root@centos7 test2]# cat a.txt T1 person1 person2 person3 T2 person1 person2 T3 person1 person2 person3 person 阅读全文
posted @ 2022-04-15 11:19 小鲨鱼2018 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos7 test]# ls test.fa [root@centos7 test]# cat test.fa >chr1 addgg ddges df >chr2 ertfg sdf >chr3 edret dfdff sfdfd d >chr4 iejie sdg 阅读全文
posted @ 2022-04-15 09:02 小鲨鱼2018 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos7 test3]# ls test.txt [root@centos7 test3]# cat test.txt deet dggh df 2、awk实现 [root@centos7 test3]# ls test.txt [root@centos7 test3 阅读全文
posted @ 2022-04-15 08:21 小鲨鱼2018 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: 1、 [root@centos7 test5]# ls test.java [root@centos7 test5]# cat test.java class Dog{ ## 类 int size; String breed; String name; void bark() { System.ou 阅读全文
posted @ 2022-04-14 18:00 小鲨鱼2018 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 类是对象的抽象定义,对象是类的具体实例。 类就是对象???? 对象就是类??? 阅读全文
posted @ 2022-04-14 15:59 小鲨鱼2018 阅读(77) 评论(0) 推荐(0) 编辑
摘要: java中类与方法: 阅读全文
posted @ 2022-04-14 15:21 小鲨鱼2018 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt 3 2 7 3 2 8 7 [root@centos7 test4]# sort -u test.txt ## sort -u命令 2 3 7 8 阅读全文
posted @ 2022-04-14 14:59 小鲨鱼2018 阅读(170) 评论(0) 推荐(0) 编辑
上一页 1 ··· 205 206 207 208 209 210 211 212 213 ··· 367 下一页