Using files passed to pipe