上一页 1 ··· 285 286 287 288 289 290 291 292 293 ··· 403 下一页
摘要: 1、测试数据 [root@PC3 test]# cat a.txt e r t y d a d g 4 3 1 3 d g k 2、awk实现 [root@PC3 test]# cat a.txt e r t y d a d g 4 3 1 3 d g k [root@PC3 test]# awk 阅读全文
posted @ 2021-07-24 01:50 小鲨鱼2018 阅读(82) 评论(0) 推荐(0)
摘要: 1、测试数据 [root@PC3 test]# cat b.txt sfg3 dg2k 2、删除第三个字符,sed删除 [root@PC3 test]# cat b.txt sfg3 dg2k [root@PC3 test]# sed 's/.//3' b.txt sf3 dgk 3、cut删除 [ 阅读全文
posted @ 2021-07-24 01:46 小鲨鱼2018 阅读(445) 评论(0) 推荐(0)
摘要: 1、free [root@PC3 /]# free total used free shared buffers cached Mem: 8162676 7297800 864876 9584 32 6237016 -/+ buffers/cache: 1060752 7101924 Swap: 8 阅读全文
posted @ 2021-07-24 01:05 小鲨鱼2018 阅读(1528) 评论(0) 推荐(0)
摘要: 1、测试数据 [root@centos79 test]# cat a.txt 01 02 03 04 05 06 07 08 09 10 2、xargs [root@centos79 test]# cat a.txt 01 02 03 04 05 06 07 08 09 10 [root@cento 阅读全文
posted @ 2021-07-22 00:18 小鲨鱼2018 阅读(339) 评论(0) 推荐(0)
摘要: 1、 test <- read.table("a.txt", as.is = T) test index <- read.table("cols",as.is = T) index index <- as.vector(t(index)) index test2 <- test[,index] te 阅读全文
posted @ 2021-07-21 23:48 小鲨鱼2018 阅读(6959) 评论(0) 推荐(0)
摘要: 1、 [root@centos79 test]# cat a.txt test3_1_clean.fq.gz test3_2_clean.fq.gz test4_1_clean.fq.gz test4_2_clean.fq.gz test5_1_clean.fq.gz test5_2_clean.f 阅读全文
posted @ 2021-07-21 23:14 小鲨鱼2018 阅读(145) 评论(0) 推荐(0)
摘要: linux系统中批量提取指定列的数据。 1、测试数据 [root@centos79 test]# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 03 0f 0t 0s 0g 0y 0a 0d 0e 0n 07 03 0 阅读全文
posted @ 2021-07-21 19:58 小鲨鱼2018 阅读(2070) 评论(0) 推荐(0)
摘要: 1、测试数据 [root@centos79 test]# cat a.txt 01 3 4 02 f s 03 t 3 04 s d 05 g i 06 y e 07 a w 08 d g 09 e w 10 n u 11 7 8 12 3 s 13 a d 14 g e 15 w a 16 z v 阅读全文
posted @ 2021-07-21 19:23 小鲨鱼2018 阅读(2262) 评论(0) 推荐(0)
摘要: linux系统中nl命令 1、测试数据 [root@centos79 test3]# cat a.txt e 3 8 i d f a e 8 3 s g g j 2 z t y c g s g s a 2、nl命令 [root@centos79 test3]# cat a.txt e 3 8 i d 阅读全文
posted @ 2021-07-21 13:53 小鲨鱼2018 阅读(293) 评论(0) 推荐(0)
摘要: 1、 脚本如下: [root@centos79 test2]# cat test.sh #!/bin/bash if [ $# -ne 1 ] ## $#表示一共有几个参数 then echo "usage bash test.sh number" exit 1 else echo "sqrt($1 阅读全文
posted @ 2021-07-21 13:36 小鲨鱼2018 阅读(984) 评论(0) 推荐(0)
上一页 1 ··· 285 286 287 288 289 290 291 292 293 ··· 403 下一页