rm command problem
if -i rm .o .y; in it113student; echo successful else echo failed fi
trying to get this to work ? |
What should this command sequence do in the end?
|
Hi, welcome to LQ!,
What is it meant to do? What language is it? Cheers, Tink |
this is supposed to delete .o or.y file and answer if successful or failed this is in ubuntu terminal. any help is appriciated even if a link to a site that can explain this but I have been to a great number of sites and they are not real helpful.
Thank you for the advice and assistance |
Quote:
Code:
in it113student |
Quote:
What does the "in is113student" for? It's totally invalid syntax, and even if it was, there is no "in" command. If you meant the run this in the directory "it113student", you should run "cd it113student" before all this. Remember, prgramming languages are not like humen languages, computers can't "figure out" what you mean. It has to comply to an exact specification or the computer will get none of it. If I correctly understood you wanted to do, I think this is what your script should look like: Code:
cd it113student |
Thank you for the advice and assistance it's nice to see that someone is willing to help someone who is trying to learn this.
|
All times are GMT -5. The time now is 02:19 PM. |