上一页 1 ··· 219 220 221 222 223 224 225 226 227 ··· 367 下一页
摘要: 1、一般情况提取连续行 测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt >1 01 02 >2 03 04 >3 05 06 >4 07 08 >5 09 10 >6 11 12 >7 13 14 > 阅读全文
posted @ 2022-02-03 00:21 小鲨鱼2018 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据test.fa (一共两条染色体) >OR4F5_ENSG00000186092_ENST00000641515_61_1038_2618 CCCAGATCTCTTCAGTTTTTATGCCTCATTCTGTGAAAATTGCTGTAGTCTCTTCCAGTTATGAAGAAGGTAAC 阅读全文
posted @ 2022-02-02 22:57 小鲨鱼2018 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 1、测试 ctrl + F6(快捷键) >>> list1 = ["aaa", "bbb", "ccc", "ddd"] >>> list1 ['aaa', 'bbb', 'ccc', 'ddd'] >>> type(list1) <class 'list'> >>> ## 此处执行ctrl + F 阅读全文
posted @ 2022-02-02 21:52 小鲨鱼2018 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1、 > dat1 <- c(3, 1, 4, 7, 6) ## 测试数据1, 未排序 > all(dat1 == sort(dat1)) ## dat1未排序, 判断原始向量和排序后的向量是否一致 [1] FALSE > dat2 <- c(1, 3, 4, 6, 7) ## 测试数据2, 已排序 阅读全文
posted @ 2022-02-01 18:14 小鲨鱼2018 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1、查看内核、系统版本 [root@virtualboxcentos7 test]# hostnamectl Static hostname: virtualboxcentos7 Icon name: computer-vm Chassis: vm Machine ID: e8d08b54fc552 阅读全文
posted @ 2022-02-01 01:31 小鲨鱼2018 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 1、生成矩阵,使用matrix函数 > set.seed(111) ## 设定随机数种子 > vect <- sample(1:10,16, replace = T) > vect [1] 4 3 9 5 3 8 10 1 10 4 8 10 9 8 1 7 > dat <- matrix(vect 阅读全文
posted @ 2022-01-31 19:35 小鲨鱼2018 阅读(2700) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt 2 3 5 d a d g v k z c d e q w r i j m n x z v d f g h 2、转换为3列数据 root@PC1:/home/tes 阅读全文
posted @ 2022-01-31 09:06 小鲨鱼2018 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据 a 3 5 d s g e z 2、sed 实现 root@PC1:/home/test2# ls test.txt root@PC 阅读全文
posted @ 2022-01-30 23:55 小鲨鱼2018 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z root@PC1:/home/test2# cat -A test.txt a 3 5 d$ s g e z$ 2、 阅读全文
posted @ 2022-01-30 23:22 小鲨鱼2018 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据 a 3 5 d s g e z c g w k z c m d 2、xargs实现(数据大时不适用) root@PC1:/home/ 阅读全文
posted @ 2022-01-30 23:11 小鲨鱼2018 阅读(265) 评论(0) 推荐(0) 编辑
上一页 1 ··· 219 220 221 222 223 224 225 226 227 ··· 367 下一页