摘要: 1、创建测试数据 [root@linuxprobe test3]# cat a.txt e i j s e f Y U D S D G 2、小写转换为大写 tr [root@linuxprobe test3]# tr [a-z] [A-Z] < a.txt ## 所有小写字符转换为大写 E I J 阅读全文
posted @ 2020-10-11 23:27 小鲨鱼2018 阅读(3273) 评论(0) 推荐(1) 编辑
摘要: 1、创建测试数据 [root@linuxprobe test3]# cat a.txt wrwrt fdgsaf fsads gdfgde fsddd dffgdf sfdef sdfdsg 2、 [root@linuxprobe test3]# sed 's/.//' a.txt ##删除开头一个 阅读全文
posted @ 2020-10-11 22:28 小鲨鱼2018 阅读(3689) 评论(0) 推荐(0) 编辑
摘要: 1、创建测试数据 [root@linuxprobe test3]# cat a.txt w r t f s 4 6 6 a g g s d g r 4 d e w h s f g h 2、 [root@linuxprobe test3]# grep -E '^w|^a|h$' a.txt ## 提取 阅读全文
posted @ 2020-10-11 21:45 小鲨鱼2018 阅读(1457) 评论(0) 推荐(0) 编辑
摘要: 1、创建测试数据 [root@linuxprobe test3]# echo {1..300} | xargs -n 15 > a.txt [root@linuxprobe test3]# cat a.txt 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 阅读全文
posted @ 2020-10-11 21:35 小鲨鱼2018 阅读(10223) 评论(0) 推荐(0) 编辑
摘要: 1、运行python程序遇到下面问题,python版本3.6.8 ModuleNotFoundError: No module named 'scipy' 2、 pip3 install scipy 阅读全文
posted @ 2020-10-11 10:21 小鲨鱼2018 阅读(7177) 评论(0) 推荐(0) 编辑