上一页 1 ··· 249 250 251 252 253 254 255 256 257 ··· 367 下一页
摘要: 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 阅读(306) 评论(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 阅读(6845) 评论(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 阅读(136) 评论(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 阅读(1960) 评论(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 阅读(2162) 评论(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 阅读(278) 评论(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 阅读(922) 评论(0) 推荐(0) 编辑
摘要: linux系统中pgrep用于查找进程 1、查找与命令相关的进程 [root@centos79 test]# pgrep sort [root@centos79 test]# 启动一个sort命令测试: [root@centos79 test]# seq -f test%03g 100000000| 阅读全文
posted @ 2021-07-21 13:16 小鲨鱼2018 阅读(187) 评论(0) 推荐(0) 编辑
摘要: c语言中显示各种数据类型的大小。 #include <stdio.h> int main(void) { //char type printf("char: %zd.\n\n", sizeof(char)); //integer type printf("short: %zd.\n", sizeof 阅读全文
posted @ 2021-07-20 22:56 小鲨鱼2018 阅读(303) 评论(0) 推荐(0) 编辑
摘要: c语言中浮点数的舍入错误。 1、 #include <stdio.h> int main(void) { float a, b; b = 2.0e20 + 1.0; a = b - 2.0e20; float c, d; d = 2.0e5 + 1.0; c = d - 2.0e5; printf( 阅读全文
posted @ 2021-07-20 22:06 小鲨鱼2018 阅读(179) 评论(0) 推荐(0) 编辑
上一页 1 ··· 249 250 251 252 253 254 255 256 257 ··· 367 下一页