上一页 1 ··· 258 259 260 261 262 263 264 265 266 ··· 403 下一页
摘要: 1、问题 > dis <- seq(100000, 10000000, 100000) > head(dis) ## 为什么以科学计数法显示? [1] 1e+05 2e+05 3e+05 4e+05 5e+05 6e+05 2、测试 > a = 10000 > a [1] 10000 > a = 1 阅读全文
posted @ 2022-01-17 23:52 小鲨鱼2018 阅读(4622) 评论(0) 推荐(0)
摘要: 1、 root@PC1:/home/test# ls test.sh root@PC1:/home/test# cat test.sh #!/bin/bash #using a function in a script function func1 { ## shell自定义函数的格式之一是 fun 阅读全文
posted @ 2022-01-16 13:18 小鲨鱼2018 阅读(196) 评论(0) 推荐(0)
摘要: 1、 root@PC1:/home/test# ls root@PC1:/home/test# for i in {A..D}; do for j in {A..D}; do echo $i"_"$j; done; done ## 生成A-D任意的两两组合 A_A A_B A_C A_D B_A B 阅读全文
posted @ 2022-01-15 16:56 小鲨鱼2018 阅读(347) 评论(0) 推荐(0)
摘要: linux 中awk命令实现统计频数 1、 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt 3 4 6 3 2 4 8 2 1 5 6 2 4 3 6 1 2 4 7 3 3 4 7 2 root@PC1:/home/test 阅读全文
posted @ 2022-01-15 10:55 小鲨鱼2018 阅读(507) 评论(0) 推荐(0)
摘要: 1、循环数字 root@PC1:/home/test# ls root@PC1:/home/test# for((i = 1; i <= 5; i++)); do echo $i; done 1 2 3 4 5 2、 root@PC1:/home/test# ls root@PC1:/home/te 阅读全文
posted @ 2022-01-15 10:30 小鲨鱼2018 阅读(257) 评论(0) 推荐(0)
摘要: 1、获取环境变量 export env 2、测试export 和 env: root@PC1:/home/test# ls root@PC1:/home/test# export > export.txt ## 生成文件 root@PC1:/home/test# ls export.txt root 阅读全文
posted @ 2022-01-15 00:18 小鲨鱼2018 阅读(1292) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 2 1 9 5 7 5 7 8 4 2 3 4 6 2、统计每行数据的最大值 root@PC1:/home/test# ls test.tx 阅读全文
posted @ 2022-01-14 22:02 小鲨鱼2018 阅读(901) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 2 1 9 5 7 5 7 8 4 2 3 4 6 2、实现计算每行的和 root@PC1:/home/test# ls test.txt 阅读全文
posted @ 2022-01-14 21:34 小鲨鱼2018 阅读(3229) 评论(14) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 2 1 9 5 7 5 7 8 4 2 3 4 6 2、输出每一列的最大值 root@PC1:/home/test# ls test.txt 阅读全文
posted @ 2022-01-14 21:20 小鲨鱼2018 阅读(927) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 9 1 3 5 4 3 7 8 4 2 3 4 6 2、对每一列数据进行求和 root@PC1:/home/test# ls test.tx 阅读全文
posted @ 2022-01-14 20:56 小鲨鱼2018 阅读(2458) 评论(0) 推荐(0)
上一页 1 ··· 258 259 260 261 262 263 264 265 266 ··· 403 下一页