摘要: 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 阅读(401) 评论(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 阅读(673) 评论(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 阅读(202) 评论(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 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1、 > dat1 <- c(1, 2, 3, 4, 5, 6) ## 测试数据 > dat2 <- c(1, 2, 3, 4, 5, 6) ## 测试数据 > lm(dat2~dat1) Call: lm(formula = dat2 ~ dat1) Coefficients: (Intercep 阅读全文
posted @ 2022-01-21 12:29 小鲨鱼2018 阅读(451) 评论(0) 推荐(0) 编辑