Having trouble with script in Ubuntu
I am trying to create a script that creates a vector and displays it. I used the command inivec but it didn't work.
#! /bin/bash # Title: Vector # Author: Jose Miguel Colella # Description: Creating Vector inivec MV 3 aa done How do I make it so the terminal executes mi script to create a vector. I know MV is the name and the output should be aa aa aa, but nothing.? |
You can't be getting ' nothing' from stunning it, a if nothing else, the 'done' line would be causing ash error as it's being used illegally. What are you doing to run this? What happens?
|
What happens when you run the exact same input on the command line?
ie, try running: Code:
inivec MV 3 aa; done Remember that a script simply automates something you would have done by hand on the command line, so if it doesn't work there then it will never work in the script. |
I will try that thanks
|
All times are GMT -5. The time now is 06:16 PM. |