上一页 1 ··· 256 257 258 259 260 261 262 263 264 ··· 403 下一页
摘要: 1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据 a 3 5 d s g e z 2、sed 实现 root@PC1:/home/test2# ls test.txt root@PC 阅读全文
posted @ 2022-01-30 23:55 小鲨鱼2018 阅读(224) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z root@PC1:/home/test2# cat -A test.txt a 3 5 d$ s g e z$ 2、 阅读全文
posted @ 2022-01-30 23:22 小鲨鱼2018 阅读(389) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据 a 3 5 d s g e z c g w k z c m d 2、xargs实现(数据大时不适用) root@PC1:/home/ 阅读全文
posted @ 2022-01-30 23:11 小鲨鱼2018 阅读(283) 评论(0) 推荐(0)
摘要: 1、sqrt > sqrt(4) ## 4的平方根 [1] 2 > sqrt(9) ## 9的平方根 [1] 3 > sqrt(10) ## 10的平方根 [1] 3.162278 2、log > log(100) ## 以e为底, 100的对数 [1] 4.60517 > log10(100) # 阅读全文
posted @ 2022-01-23 23:29 小鲨鱼2018 阅读(2074) 评论(0) 推荐(0)
摘要: 1、向下取整数floor > a <- 1.1 ## 向下取整数 > floor(a) [1] 1 > a <- 1.9 ## 向下取整数 > floor(a) [1] 1 2、向上取整数ceiling > a <- 1.9 > ceiling(a) ## 向上取整数 [1] 2 > a <- 1. 阅读全文
posted @ 2022-01-23 23:23 小鲨鱼2018 阅读(1446) 评论(0) 推荐(0)
摘要: 1、取正对角线 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt 1 D E 2 s d 3 d c root@PC1:/home/test# awk '{print $NR}' a.txt ## 取矩阵对角线元素,正对角线 1 阅读全文
posted @ 2022-01-23 21:40 小鲨鱼2018 阅读(93) 评论(0) 推荐(0)
摘要: 1、 root@PC1:/home/test2# ls a.txt dir.1 test.csv test.ped root@PC1:/home/test2# ls -l total 8 -rw-r--r-- 1 root root 64 1月 21 23:14 a.txt drwxr-xr-x 2 阅读全文
posted @ 2022-01-21 23:45 小鲨鱼2018 阅读(432) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt ## 测试数据 chenwu 05/99 4811 27 mary 02/22 1231 30 tom 09/15 1182 25 2、 root@PC1:/h 阅读全文
posted @ 2022-01-21 23:34 小鲨鱼2018 阅读(691) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test# ls ## 测试数据 a.txt b.txt root@PC1:/home/test# cat a.txt w s g d w a root@PC1:/home/test# cat b.txt d a e d t c 2、取两个文件的交集 so 阅读全文
posted @ 2022-01-21 18:44 小鲨鱼2018 阅读(222) 评论(0) 推荐(0)
摘要: 1、 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 1 3 8 1 3 5 1 7 root@PC1:/home/test# sort test.txt | uniq -d ## 取出重复项 1 3 root@P 阅读全文
posted @ 2022-01-21 15:36 小鲨鱼2018 阅读(232) 评论(0) 推荐(0)
上一页 1 ··· 256 257 258 259 260 261 262 263 264 ··· 403 下一页