上一页 1 ··· 175 176 177 178 179 180 181 182 183 ··· 367 下一页
摘要: 001、sed实现 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt 1 e d 2 a g 3 w e 4 d g 5 g j 6 e j 7 l m 8 i n root@PC1:/home/test2# sed 'N; 阅读全文
posted @ 2022-06-20 10:15 小鲨鱼2018 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1、1、3行互换 root@PC1:/home/test2# ls a.txt swap.sh root@PC1:/home/test2# cat a.txt 1 x c 2 s d 3 e t 4 d s 5 j u 6 n x root@PC1:/home/test2# cat swap.sh 阅读全文
posted @ 2022-06-20 10:07 小鲨鱼2018 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 1、001 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 root@PC1:/home/test2# sort a.txt ## 排序异 阅读全文
posted @ 2022-06-20 08:36 小鲨鱼2018 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 01、 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt ddd 2 8 aa 1 87 name gender score ff 2 3 ss 1 23 root@PC1:/home/test2# sort -k 3 a. 阅读全文
posted @ 2022-06-20 08:25 小鲨鱼2018 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1、临时创建 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt j k e s f g x v b root@PC1:/home/test2# alias 'cat=cat -A' ## 创建命令别名 root@PC1:/h 阅读全文
posted @ 2022-06-18 12:56 小鲨鱼2018 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1、提取 包含s的列 dir() dat <- read.table("a.txt") dat ## 测试数据 idx <- dat[1,] == "s" idx for (i in 2:nrow(dat)) { temp <- dat[i,] == "s" idx <- idx | temp ## 阅读全文
posted @ 2022-06-16 10:00 小鲨鱼2018 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 001、测试数据 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt 1 2 3 4 5 6 7 8 9 e f s f g u d f x a d s g s c s e s z c b e g c s d f 002、提取包含 阅读全文
posted @ 2022-06-16 09:45 小鲨鱼2018 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: 1、 dat <- matrix(c(3, 7, 1, 2, 4, 9, 8, 5, 0, 15, 22, 77, 11, 44, 33, 88), nrow = 4) dat lines <- nrow(dat) * (nrow(dat) - 1)/2 + nrow(dat) lines res 阅读全文
posted @ 2022-06-15 21:09 小鲨鱼2018 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1、系统信息 root@ubuntu2204test01:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Coden 阅读全文
posted @ 2022-06-15 09:48 小鲨鱼2018 阅读(2288) 评论(0) 推荐(0) 编辑
摘要: 1、系统信息 root@ubuntu2204test01:/home# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 C 阅读全文
posted @ 2022-06-14 10:54 小鲨鱼2018 阅读(774) 评论(0) 推荐(0) 编辑
上一页 1 ··· 175 176 177 178 179 180 181 182 183 ··· 367 下一页