본문 바로가기

Python_Beginer/GIT

[GIT]Check text document contents(텍스트 문서 내용 확인)

반응형

1. cat 파일명

: 텍스트 문서의 내용 확인

$ cat test.txt

 

2. cat 파일1 파일2 .. 파일n > 새파일

: 파일 n개를 차례로 연결해서 새로운 파일을 생성

$ vim test2.txt
$ cat test2.txt
$ cat test.txt test2.txt > test3.txt
$ cat test3.txt

 

3. cat 파일1 >> 파일2

: 파일1의 내용을 파일2 끝에 연결합니다.

$ cat test.txt >> test3.txt
$ cat test3.txt

반응형