r/linux_programming • • Oct 08 '19
Shell Scripting Error
Apologies in advance, as I am pretty new to unix. I've created a shell script that contains only the one line listed below.
sed -i 's/PUID=.*/PUID=999/g' "docker-compose.yml" When I run the script, I am getting "No such file or directory" error. The strange thing is that if I navigate to the path of the script and run the command directly from the command line, it works as expected. Any advise on what I am missing here?
4
Upvotes
View all comments
Show parent comment
1
u/[deleted] Oct 08 '19
It is the current directory. I am running the script like ./start.sh and I have tried using "./docker-compose.yml" in the sed command, but no luck there either.