self-deleting shell script

后端 未结 4 2055
予麋鹿
予麋鹿 2021-01-30 10:43

I\'ve looked around for an answer to this one but couldn\'t find one.

I have written a simple script that does initial server settings and I\'d like it to remove/unlink

4条回答
  •  心在旅途
    2021-01-30 10:50

    This works for me:

    #!/bin/sh
    
    rm test.sh
    

    Maybe you didn't really mean to have the '$' in '$test.sh'?

提交回复
热议问题