mirror of
https://github.com/notwa/rc
synced 2024-06-17 05:33:06 -07:00
add an example for cdbusiest
This commit is contained in:
parent
549f0b3a00
commit
cefcd1779e
|
@ -3,6 +3,14 @@
|
|||
|
||||
cdbusiest() { ### @-
|
||||
### 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
|
||||
[ -z $c ] && return 1
|
||||
printf "%s\n" "$c $d"
|
||||
|
|
Loading…
Reference in New Issue
Block a user