I have ifc1410-ioxos-161103 in /export/nfsroots/, and would like to copy the entire dir in the different name.


$ mkdir ifc1410-ioxos-161103-rules-test


$ cd ifc1410-ioxos-161103


$ sudo -E tar cf - . | (cd /export/nfsroots/ifc1410-ioxos-161103-rules-test/ && tar xBf -)


Reference   http://www.linuxdevcenter.com/pub/a/linux/lpt/18_16.html

저작자 표시 비영리 변경 금지
신고
posted by citadel

base_version="3.14.12.4"

extn_version="20120904"
extn_filename="extensionsTop_${extn_version}.tar.gz"
extn_raw_dirname="extensions_for_${base_version}"

tar xvzf ${extn_filename} --transform 's/extensions/'${extn_raw_dirname}'/'


저작자 표시 비영리 변경 금지
신고
posted by citadel