bash_execute.sh 276 B

12345678910111213141516171819
  1. #!/usr/bin/bash
  2. convert_path() {
  3. local ARG="$1"
  4. ARG="${ARG//C:\\//c/}"
  5. ARG="${ARG//c:\\//c/}"
  6. ARG="${ARG//C:\///c/}"
  7. ARG="${ARG//c:\///c/}"
  8. echo "$ARG"
  9. }
  10. declare params=()
  11. for x in "${@}"
  12. do
  13. params+=("$(convert_path "${x}")")
  14. done
  15. "${params[@]}"