摘要: 参考文献:https://blog.csdn.net/w918589859/article/details/108752592 阅读全文
posted @ 2022-10-22 16:19 Harda 阅读(27) 评论(0) 推荐(0) 编辑
摘要: sort是在Linux里非常常用的一个命令,管排序 sort将文件的每一行作为一个单位,相互比较,比较原则是从首字符向后,依次按ASCII码值进行比较,最后将他们按升序输出。 使用方法:sort [选项]... [文件]... 长选项必须用的參数在使用短选项时也是必须的。顺序选项: 12345678 阅读全文
posted @ 2022-10-22 15:29 Harda 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1.字符串截取 字符长度 [user@host dir]$ str=123abc123 [user@host dir]$ echo ${#str} 9 从左边截取 ${string:position:length} :从字符串 string 的 position 位置截取 length 个字符串 [ 阅读全文
posted @ 2022-10-22 15:13 Harda 阅读(393) 评论(0) 推荐(0) 编辑