Detect TTY, Pipe, or Redirect
Report whether stdout is attached to a terminal, a pipe, or a redirection so scripts can choose human or machine output.
This page is in English. Your browser can translate it.
Report whether stdout is attached to a terminal, a pipe, or a redirection so scripts can choose human or machine output.