Question: In my shellFile.sh I wrote this function:

```
#!/bin/bash
myFunction(){
echo 1
}

```

I tried to call the function from the command line this way:

```
shellFile.sh
shellFile.sh myFunction

```

After this two lines there is no output and no errors. I apologize if this question is asked before but I couldn't find it.

Answer: 
I suggest:

```
#!/bin/bash
myFunction(){
  echo 1
}

$1

```

Usage: `./shellFile.sh myFunction`

Output:

```

1

```
You need to call the function in the script:

```
#!/bin/bash
myFunction() {
    echo 1
}
myFunction

```