large and midfiles

This commit is contained in:
Christoph J. Scherr 2023-06-11 00:54:58 +02:00
parent eed3acad71
commit a68a29fd76
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,8 @@ alias gls=/bin/ls
### Functions ### Functions
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" }
function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" }
### ZSH HOME ### ZSH HOME
export ZSH=$HOME/.zsh-server export ZSH=$HOME/.zsh-server

View File

@ -31,6 +31,8 @@ alias gls=/bin/ls
### Functions ### Functions
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" }
function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" }
### ZSH HOME ### ZSH HOME
export ZSH=$HOME/.zsh export ZSH=$HOME/.zsh