mirror of
https://github.com/notwa/rc
synced 2024-06-26 01:07:11 -07:00
add an example for cdbusiest
This commit is contained in:
parent
549f0b3a00
commit
cefcd1779e
|
@ -3,6 +3,14 @@
|
||||||
|
|
||||||
cdbusiest() { ### @-
|
cdbusiest() { ### @-
|
||||||
### cd to the directory with the most files in it, counted recursively.
|
### cd to the directory with the most files in it, counted recursively.
|
||||||
|
###
|
||||||
|
### ```
|
||||||
|
### $ cd
|
||||||
|
### $ cdbusiest
|
||||||
|
### 152364 src
|
||||||
|
### $ pwd
|
||||||
|
### /home/notwa/src
|
||||||
|
### ```
|
||||||
dbusiest | read -r c d
|
dbusiest | read -r c d
|
||||||
[ -z $c ] && return 1
|
[ -z $c ] && return 1
|
||||||
printf "%s\n" "$c $d"
|
printf "%s\n" "$c $d"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user