added grep -irl

This commit is contained in:
2021-06-16 16:27:27 +02:00
parent 78c63888be
commit ce366e2662
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
# find biggest directories in a given path without leaving the current filesystem
dir="/var/opt/gitlab"; for i in $(ls $dir); do mountpoint -q $dir/$i || du -shx $dir/$i ; done | sort -rh | head
dir="$1"; for i in $(ls $dir); do mountpoint -q $dir/$i || du -shx $dir/$i ; done | sort -rh | head