上一页 1 ··· 246 247 248 249 250 251 252 253 254 ··· 408 下一页
摘要: 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 阅读(264) 评论(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 阅读(444) 评论(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 阅读(79) 评论(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 阅读(619) 评论(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 阅读(1152) 评论(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 阅读(37) 评论(0) 推荐(0)
摘要: 类是对象的抽象定义,对象是类的具体实例。 类就是对象???? 对象就是类??? 阅读全文
posted @ 2022-04-14 15:59 小鲨鱼2018 阅读(112) 评论(0) 推荐(0)
摘要: java中类与方法: 阅读全文
posted @ 2022-04-14 15:21 小鲨鱼2018 阅读(28) 评论(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 阅读(190) 评论(0) 推荐(0)
摘要: 1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt d j k j x m y e s g j i x v b d z c e t 2、统计行数和列数 [root@centos7 test4]# ls 阅读全文
posted @ 2022-04-14 14:52 小鲨鱼2018 阅读(432) 评论(0) 推荐(0)
上一页 1 ··· 246 247 248 249 250 251 252 253 254 ··· 408 下一页