mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
7 lines
155 B
Bash
Executable File
7 lines
155 B
Bash
Executable File
#!/bin/bash
|
|
# requires: coreutils
|
|
[[ -f "$1" ]] || exit 0
|
|
sz=$(cat $1)
|
|
sz=$((0$sz))
|
|
echo "size-sum:" $(numfmt --to=iec $sz)
|
|
[[ "$2" == "--rm" ]] && rm "$1" |