摘要: 001、常规删除方法 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 ## str1 01 02 03 04 05 06 07 08 ## 09 10 11 12 13 14 15 16 17 18 19 20 ## 阅读全文
posted @ 2023-07-11 23:55 小鲨鱼2018 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 001、awk实现 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 阅读全文
posted @ 2023-07-11 23:03 小鲨鱼2018 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 [root@PC1 test02]# sed ':a; N; s/\n/ /; ta' a.txt 阅读全文
posted @ 2023-07-11 21:13 小鲨鱼2018 阅读(84) 评论(0) 推荐(0) 编辑
摘要: ls -F 选项在输出项追加文件的类型标识符。 例如: 001、 [root@PC1 test02]# ls ## 测试文件 test test01.txt test02.txt test03.txt test04.txt xxx001.ped xxx003.ped test01.csv test0 阅读全文
posted @ 2023-07-11 17:52 小鲨鱼2018 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 001、python程序报错如下: 002、报错原因(看着缩进是一样的,实际上是不一样的) 003、解决方法 将缩进统一调整为tab键, 对齐即可。 参考:https://blog.51cto.com/yunyaniu/4724938 。 阅读全文
posted @ 2023-07-11 07:19 小鲨鱼2018 阅读(7) 评论(0) 推荐(0) 编辑