bash - Shebang followed by rm command not a self deleting script -


I am referring to this tutorial to improve my knowledge, but I think that removing my script The script for the order is described in the website. Am I doing something wrong or is the code wrong?

  #! / Bin / rm # How to delete the script # It does not look like when you run it ... except that the file disappears. Until echo = 85 "This line will never be printed (beta!)." Eject $ $ $ # No matter the script will not be out here # Try echoing a $? After completion of the script, you will get a 0, not 85.   

I have also tried,

  #! / Bin / rm -f   

That too is not working.

Shabang notation interprets interpreter when executed as script (. / MyScript.sh ) is used.

If you tell clearly interpreter - as, bash MyScript.sh - it overlays the Shebang line so I guess I am here that has happened.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -