grep Dedup in script