cd / find /test/ -name '*.tar.gz' -exec tar -xzf {} \;
이렇게 하니 / 에서 압축이 전부 풀려버립니다. -C 옵션을 사용할수 없는게 test/folder/folder/abc.tar.gz 이런식으로 압축파일 경로가 다 다릅니다. 압축파일이 자신의 위치에서 압축 풀리게 하는 방법은 없을까요?
-exec 대신 -execdir 을 쓰면 될 것 같군요.
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
음 ..
-exec 대신 -execdir 을 쓰면 될 것 같군요.
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
댓글 달기