large-files: allow specifying another file size

master
neingeist 7 years ago
parent e078fee541
commit 1c52286616

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# Find large files on this host # Find large files on this host
LARGE='+100M' LARGE=${1:-100M}
WHERE=`mount -t ext2,ext3,ext4,btrfs,ntfs,reiserfs,xfs,zfs | awk '{ print $3 }'` WHERE=`mount -t ext2,ext3,ext4,btrfs,ntfs,reiserfs,xfs,zfs | awk '{ print $3 }'`
IGNORE='^(/var/lib/rpm/Packages|/home/.*/.btsync/.*\.db)$' IGNORE='^(/var/lib/rpm/Packages|/home/.*/.btsync/.*\.db)$'
sudo find $WHERE -xdev -size $LARGE | grep --line-buffered -Ev "$IGNORE" sudo find $WHERE -xdev -size +$LARGE | grep --line-buffered -Ev "$IGNORE"

Loading…
Cancel
Save