When using tilde, its rather important not to quote it =p
Prefer GNU coreutils on Mac when available