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

后端 未结 7 1990
清酒与你
清酒与你 2021-02-13 07:21

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条回答
  •  萌比男神i
    2021-02-13 08:05

    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.

提交回复
热议问题