I have an executable file always in /home/a called toUpperCase .
Now I am in the folder /home/bla/blabla/b where I have a text file to be converted to uppercase ( toConvert.txt ). All I want to do is a script that executed in /home/bla/blabla/b does something like
#!/bin/bash
./"/home/a/toUpperCase" toConvert.txt
So in the end I shoud have converted.txt in the folder /home/bla/blabla/b
But it gives me an error like line 2: .//home/a/toUpperCase: does not exist
How con I resolve this problem? thank you!
Change your script to:
#!/bin/bash
"/home/a/toUpperCase" toConvert.txt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.