눈가락
[IT] 내부 directory 의 파일까지 cat 으로 출력하는 방법
눈가락
2021. 3. 2. 19:18
recursive 하게 내부 directory 에 있는 파일들까지 모조리 cat 명령어로 출력하는 명령어는 다음과 같음
예를 들어 /home/eye/mypath 에 포함된 모든 json 파일을 출력하려면
find /home/eye/mypath -name '*.json' -exec cat {} \; > all.json |