using -o for output instead of piping