From: Alexander Barton Date: Sun, 17 Jan 2016 19:43:38 +0000 (+0100) Subject: Add "brew rdeps" command X-Git-Url: https://arthur.barton.de/gitweb/?p=homebrew-alex.git;a=commitdiff_plain;h=086abc44563209c259185372cdcf380a06dc1cac Add "brew rdeps" command Signed-off-by: Alexander Barton --- diff --git a/cmd/brew-rdeps b/cmd/brew-rdeps new file mode 100755 index 0000000..342651b --- /dev/null +++ b/cmd/brew-rdeps @@ -0,0 +1,8 @@ +#!/bin/sh +# 2016-01-17, alex@barton.de + +for formula in "$@"; do + brew deps --installed \ + | grep "\b$formula\b" \ + | cut -d':' -f1 +done | sort -u