Sieve in Bash