You can use filtration to separate a mixture of a solid in a liquid or a solid in a gas
Filtration is a separation process in which a mixture is passed through a filter that allows one component to pass through uninhibited but blocks another component from passing through.