r update, so that it works with Linux pipes