If the wire is steel you can get a HF roller magnet and run over it as you pour it out on something? They have a roller type that isn't cheap, but you can also get small neos magnets on telescopic rods, make a comb out of a few of them and run it through as well.

It is steel wire? Was the bags intent blasting?