Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion scripts/gordo
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/bash

# Find the five largest subdirectories of the current directory:
echo TODO
OS=$(uname -s)
if [[ $OS == 'Linux' ]]; then
du -hs * | sort -h | tail -5
elif [[ $OS == 'Darwin' ]]; then
brew list | grep coreutils
if [[ $? -eq 0 ]]; then
du -hs * | gsort -h | tail -5
else
echo "Please run brew install coreutils and run again"
fi
fi