diff --git a/README.md b/README.md index 171cb6f23f44c2113e239ea6318f84c5b672615c..eaa5f04029faa64e32a335ecd83b66965d5a1fed 100644 --- a/README.md +++ b/README.md @@ -42,19 +42,22 @@ manual의 줄임말로 명령어나 함수, 헤더 파일 등에 대한 사용 redirection이란 스트림의 흐름을 바꿔주는 것이다. redirection을 이용해 프로세스의 스트림을 콘솔이 아닌 파일을 사용할 수 있다. -* \> file +* \> +`file > output` 표준 출력을 파일로 redirection한다. 파일이 없으면 새로 만들고, 파일이 있으면 덮어쓴다. ``` $ ./test > output_data ``` -* \>> file +* \>> +`file >> output` 표준 출력을 파일로 redirection한다. 파일이 없으면 새로 만들고, 파일이 있으면 파일의 끝에 덧붙인다. ``` $ ./test >> output_data ``` -* < file +* < +`file < input` 파일로부터 표준 입력을 받도록 redirection한다. ``` $ ./test < intput_data