会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小鲨鱼2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
246
247
248
249
250
251
252
253
254
···
408
下一页
2022年4月16日
linux中取随机数
摘要: 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)
2022年4月15日
linux中awk命令中的next的用法
摘要: 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)
linux中awk命令实现一列数据按照标题折叠及展开
摘要: 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)
linux 中shell统计fasta文件中每条染色体中的碱基数目
摘要: 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)
linux中如何统计文本字符的总个数
摘要: 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)
2022年4月14日
java中类与对象
摘要: 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中类与方法
摘要: java中类与方法:
阅读全文
posted @ 2022-04-14 15:21 小鲨鱼2018
阅读(28)
评论(0)
推荐(0)
linux中awk实现类sort -u命令
摘要: 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)
linux 中同时统计文件的行数和列数
摘要: 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
下一页
公告