From fcf8d0c0246b353f255eb5173cd8cd3748f8da3b Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- find-broken-ln | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 find-broken-ln (limited to 'find-broken-ln') diff --git a/find-broken-ln b/find-broken-ln new file mode 100755 index 0000000..8db7db9 --- /dev/null +++ b/find-broken-ln @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -t 1 ]; then + pattern="%p \033[38;5;4m=>\033[m \033[38;5;9m%l\033[m\n" +else + pattern="%p => %l\n" +fi + +find "${@}" -xtype l -printf "${pattern}" -- cgit 1.4.1