Thursday, February 14, 2013

Exclude certain files from copy

We just want to exclude .err files from being coped over. This is an awesome command that does the trick in just one line ;)

find $UNIX_APPS/cla/$OUTDIR ! -name "bank_loan_accruals*err" -name "bank_loan_accruals*" |xargs -i cp {} /develop/rayudsr  

No comments: