上一页 1 ··· 186 187 188 189 190 191 192 193 194 ··· 408 下一页
摘要: 001、 (base) root@PC1:/home/test2# ls a.txt (base) root@PC1:/home/test2# cat a.txt ## 测试数据 01 02 AAA 03 04 05 BBB 06 07 08 CCC 09 10 (base) root@PC1:/h 阅读全文
posted @ 2022-08-17 01:07 小鲨鱼2018 阅读(562) 评论(0) 推荐(0)
摘要: 001、 (base) root@PC1:/home/test2# cat a.txt ## 测试数据 1 2 3 k 4 5 6 7 k 8 9 10 (base) root@PC1:/home/test2# sed '/k/{n;d}' a.txt ## 删除匹配k之后的一行 1 2 3 k 5 阅读全文
posted @ 2022-08-17 00:57 小鲨鱼2018 阅读(78) 评论(0) 推荐(0)
摘要: 001、 (base) root@PC1:/home/test2# cat a.txt ## 测试数据 1 2 3 k 4 5 6 7 k 8 9 10 (base) root@PC1:/home/test2# sed '/k/, +2{/k/b; d}' a.txt ## 删除匹配k之后的两行 1 阅读全文
posted @ 2022-08-17 00:54 小鲨鱼2018 阅读(627) 评论(0) 推荐(0)
摘要: 001、 (base) root@PC1:/home/test2# ls a.txt (base) root@PC1:/home/test2# cat a.txt ## 测试数据 1 2 3 k 4 5 6 7 k 8 9 10 (base) root@PC1:/home/test2# sed '/ 阅读全文
posted @ 2022-08-17 00:42 小鲨鱼2018 阅读(61) 评论(0) 推荐(0)
摘要: 001、方法1 root@PC1:/home/test# ls a.txt test.py root@PC1:/home/test# cat a.txt ## 测试数据 #chromosome nc_accession gene gene_id ccds_id ccds_status cds_str 阅读全文
posted @ 2022-08-16 23:18 小鲨鱼2018 阅读(177) 评论(0) 推荐(0)
摘要: 001、 (base) root@PC1:/home/test2# cat a.txt ## 测试数据 e f k s g d a c m s e g (base) root@PC1:/home/test2# sed 's/m/Q/g' a.txt ## 将m替换为Q e f k s g d a c 阅读全文
posted @ 2022-08-16 21:23 小鲨鱼2018 阅读(426) 评论(0) 推荐(0)
摘要: 001、 >>> test = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] ## 测试列表 >>> test ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h 阅读全文
posted @ 2022-08-16 18:39 小鲨鱼2018 阅读(2499) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test/test# ls a.txt root@PC1:/home/test/test# cat a.txt ## 测试数据 a b c d b d k 8 m 9 k d 0 r k b f f b 8 b 9 k d root@PC1:/home/tes 阅读全文
posted @ 2022-08-16 18:09 小鲨鱼2018 阅读(55) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test/test# ls a.txt root@PC1:/home/test/test# cat a.txt ## 测试数据 a b c d 3 8 6 9 0 r k 3 root@PC1:/home/test/test# awk '{for(i = 1; 阅读全文
posted @ 2022-08-16 17:56 小鲨鱼2018 阅读(281) 评论(0) 推荐(0)
摘要: 001、 c语言中整数类变量一共包含四个基本类型。 001、char型 002、 short int型 003、int型 004、long int型。 其中每种基本类型分为signed型 和 unsigned型, 也就是有符号型和无符号型, 但是有符号型和无符号型的长度是一样的。 #include 阅读全文
posted @ 2022-08-16 02:52 小鲨鱼2018 阅读(1253) 评论(0) 推荐(0)
上一页 1 ··· 186 187 188 189 190 191 192 193 194 ··· 408 下一页