2

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 should 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 can I resolve this problem? thank you!

1 Answer 1

8

Change your script to:

#!/bin/bash
"/home/a/toUpperCase" toConvert.txt
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.