Recuperation of liquid or gas