use bash file to execute \copy