./categories/os
Linux find -exec 여러 명령
패턴
find . -name '패턴' -exec sh -c '명령1; 명령2; 명령3;' \;
예: 압축 후 원본 삭제
find . -name '*.txt' -exec sh -c 'tar cjvf {}.bz2 {}; rm -f {};' \;
예: 파일명 + base64
find ?.txt -exec sh -c 'echo -n {} :::: ; base64 {} -w0; echo' \;
./comments