linux字符串列截取  cut  -d ‘分割条件’ -f ‘列数’

[root@LocalWeb01 ~]# less  /etc/passwd | grep '^user' | grep -v 'root' | cut -d ':' -f 1
user1

相关文章:

  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2021-11-30
  • 2021-08-28
  • 2021-07-25
  • 2021-09-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2021-10-17
  • 2021-09-13
  • 2021-08-21
  • 2022-12-23
相关资源
相似解决方案