摘要: 001、幂函数(即e的多少次方) [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 9 1 2 10 [root@PC1 test02]# awk '{print exp($1)}' a.txt ## 幂函数 8103. 阅读全文
posted @ 2023-07-13 21:35 小鲨鱼2018 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 001、asort函数 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ggg 666 aaa 125 ddd 123 kkk 777 bbb 128 fff 999 ccc 120 [root@PC1 test01]# awk '{ 阅读全文
posted @ 2023-07-13 20:42 小鲨鱼2018 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test01]# ls test.txt [root@PC1 test01]# cat -A test.txt ## 存在特殊字符 M-cM-^@M-^@M-cM-^@M-^@ TomM-cM-^@M-^@M-cM-^@M-^@ 2012-12-11 car 53000 阅读全文
posted @ 2023-07-13 15:46 小鲨鱼2018 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试数据 34gfjfgax gd;g3;54;66;77 sfdgfghcg ljhg9;875gf wr346dxzc mbkbczxdwa [root@PC1 te 阅读全文
posted @ 2023-07-13 08:39 小鲨鱼2018 阅读(210) 评论(0) 推荐(0) 编辑
摘要: substr命令用于截取字符串 001、 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试数据 34gfjfgax gdg3546677 sfdgfghcg ljhg9875gf wr346dxzc mbkbczxdwa [ 阅读全文
posted @ 2023-07-13 08:20 小鲨鱼2018 阅读(343) 评论(0) 推荐(0) 编辑