摘要:
1、R实现 test <- c(20,50,40,60,80) ## 测试数据 coordinate <- vector() base <- 0 temp <- 0 for (i in 1:length(test)) { temp <- base + 0.5 * test[i] coordinate 阅读全文
摘要:
1、测试数据 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt d e u d m k j a d c x s k f root@DESKTOP-1N42TVH:/home/tes 阅读全文
摘要:
1、测试数据 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt i A E F d q d M d e N f root@DESKTOP-1N42TVH:/home/test# c 阅读全文
摘要:
1、测试数据 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt d w g s d s dd d g r d gg d ge root@DESKTOP-1N42TVH:/home/ 阅读全文
摘要:
tr用来转换或者删除一段文字。 1、实现大小写转换 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt ## 测试数据 i A E F d q J M S e N f root@DE 阅读全文
摘要:
1、sub、gsub root@DESKTOP-1N42TVH:/home/test# ls test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt ## 测试数据 a 3 3 s 1 j z c m q e i 3 4 k h f 3 root 阅读全文
摘要:
1、直接测试 root@DESKTOP-1N42TVH:/home/test# ls test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt ##测试数据 a 3 3 a 3 3 s 1 j s 1 j z c m z c m q e i q e 阅读全文
摘要:
linux awk忽略大小写 root@DESKTOP-1N42TVH:/home/test# ls test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt a 3 d Q 1 j z c m q e i 3 4 Q A f 3 root@DES 阅读全文