-
echo로 파일 생성 및 문자열 추가공부/리눅스 2022. 11. 8. 23:15
hello_cli.txt 파일의 맨 끝에 "Hello Command Line" 문자열을 추가한다
echo "Hello Command Line" >> hello_cli.txt
echo "맨 끝에 추가할 문자열" >> [파일명]
파일의 맨 끝에 문자열을 추가한다.
echo "새로운 문자열" > [파일명]
파일 내용을 제거하고, 문자열을 추가한다.
'공부 > 리눅스' 카테고리의 다른 글
쉘(Shell) 스크립트 작성 및 실행하기 (0) 2021.11.04