shell脚本中获取当前所在目录如下

#!/bin/bash

work_path=$(dirname $0)
cd ${work_path} 
work_path=$(pwd) 
cd ${work_path}/src

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2022-03-03
  • 2022-01-19
  • 2022-12-23
  • 2022-03-05
相关资源
相似解决方案