How can I make the “find” Command on OS X default to the current directory?

后端 未结 7 1786
长情又很酷
长情又很酷 2021-02-13 07:43

I am a heavy command line user and use the find command extensively in my build system scripts. However on Mac OS X when I am not concentrating I often get output l

7条回答
  •  天命终不由人
    2021-02-13 07:58

    I would suggest that if you're writing scripts (which are more likely to be migrated from one system to another sometime in the future) that you should try to use the more specific form of the command, that is specifying the "." instead of relying on a default. For the same reason, I might even suggest writing sh scripts instead of relying on bash which might not be installed everywhere.

提交回复
热议问题