Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's the old $0 trick. I use that for shell scripts that share a lot of code.

    if [[ $0 == "norg" ]]; then
      gron --ungron "$@"
   
And so on


Are norg and ungron similar to wobble and wibble?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: