cut 分割学习

知识点:shell cut分割获取内容

1. cut -b 以字节为单位进行分割

以who命令为例

 

2. cut -c 以字符为单位进行切割

与 cut -b 基本相同,但是cut -c 可以切割中文,-b有时候可能为乱码

3. cut -d -f  按区域切割

参考文档:

https://blog.csdn.net/ever_peng/article/details/87697720

 

posted @ 2020-07-06 08:16  半日闲1  阅读(728)  评论(0编辑  收藏  举报