Remove redundant imports in Java file in CLI

cat MyClass.java | grep ^import | sort | uniq