Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Installing diffutils and findutils

The diffutils[34] package includes programs like diff, cmp, and diff3 that let you see differences between files.

Install them with this command:

 $ ​​brew​​ ​​install​​ ​​diffutils

These commands will be placed in /usr/local/bin, which will override the built-in tools due to how Homebrew modifies your PATH.

The findutils[35] package includes find, locate, updatedb, and xargs.

 $ ​​brew​​ ​​install​​ ​​findutils

To use these tools instead of the built-in tools, you’ll have to either prefix each with a g, or add another entry to your PATH:

 $ ​​echo​​ ​​'export PATH="$(brew --prefix findutils)/libexec/gnubin:$PATH"'​​ \
 >​​ ​​>>​​ ​​~/.bash_profile
 $ ​​source​​ ​​~/.bash_profile

When you use which ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page