Redirection과 PipingOn this pageRedirection과 PipingRedirectionPipingprogram1 | program2|는 program1의 stdout을 program2의 stdin으로 연결합니다.program1과 program2의 stderr는 터미널 화면으로 출력됩니다.stderr를 stdin으로 연결하길 원한다면 2>&1을 사용하여 stderr를 우선 stdout으로 리다이렉션 해야합니다.program1 2>&1 | program2