Skip to content
Snippets Groups Projects
Select Git revision
  • 6a13780912ea1e75ebafb8c7d2761bb872dd946c
  • master default protected
  • vrf-patches
3 results

statistics.py

Blame
  • filesize.sh 278 B
    #!/bin/sh
    
    check_command() {
    	command -v "$1" >/dev/null
    }
    
    if check_command gnustat; then
    	gnustat -c%s "$@"
    elif check_command gstat; then
    	gstat -c%s "$@"
    elif check_command stat; then
    	stat -c%s "$@"
    else
    	echo "$0: no suitable stat implementation was found" >&2
    	exit 1
    fi