mirror of
https://github.com/notwa/rc
synced 2024-11-05 20:29:03 -08:00
error-handling in dbusiest
This commit is contained in:
parent
e3cc623633
commit
5c26ac471e
2 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
dbusiest | read -r c d
|
dbusiest | read -r c d
|
||||||
|
[ -z $c ] && return 1
|
||||||
<<<"$c $d"
|
<<<"$c $d"
|
||||||
cd $d
|
cd $d
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
local c d
|
local c d
|
||||||
for d in *(FD); do
|
for d in *(FDN); do
|
||||||
print $(find $d 2>/dev/null | wc -l) $d
|
print $(find $d 2>/dev/null | wc -l) $d
|
||||||
done | sort -nr | while read c d; do
|
done | sort -nr | while read c d; do
|
||||||
echo -E $c $d
|
echo -E $c $d
|
||||||
done
|
done
|
||||||
|
[ -z $d ] && return 1
|
||||||
|
|
Loading…
Reference in a new issue