星期五, 3月 16, 2018

auto execution self script


auto execution self script



==========================================
#!/bin/sh
tail -n +$((`grep -an "^### end of script" $0 | head -1 | cut -d: -f1`+1)) $0 | cat -


exit 0
### end of script ###
aaaa
bbb

沒有留言: