Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active September 11, 2018 23:38
Show Gist options
  • Save YumaInaura/65c73c4af8b8c3d6cf315f615df3f5db to your computer and use it in GitHub Desktop.
Save YumaInaura/65c73c4af8b8c3d6cf315f615df3f5db to your computer and use it in GitHub Desktop.
Shell — BSD `$ find` command shows unneeded double slash as file path

Shell — BSD $ find command shows unneeded double slash as file path

Recoomend

Use GNU commands.

BSD

./

$ find ./ -type f
.//a
.//b
.//c

.

$ find . -type f
./a
./b
./c

GNU

.

$ gfind ./ -type f
./a
./b
./c

./

$ find . -type f
./a
./b
./c

Versions

  • bash 4.2
  • find (GNU findutils) 4.6.0
  • Mac OS X Sierra

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment