Some reminders useful when admining a server
# List all files with that extension 1GB or larger
find . -type f -size +1G -print | grep -E "\\.lif$|\\.lifext$" > lif_files.txt
# Print combined size of all files in that file in GB
awk '
{
cmd = "du -b \"" $0 "\""
cmd | getline size_line
close(cmd)
split(size_line, parts)
total += parts[1]
}
END {
printf "Total size: %.2f GB\n", total / 1073741824
}
' lif_files.txt