basename 用法
basename 名称 【后缀】
 
例子
1、 $: basename /tmp/test.sh
输出: test.sh
2、 $: basename /tmp/test.sh .sh
输出: test

 

相关文章:

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