Created
May 11, 2018 00:25
-
-
Save hanzhanggit/bee6ac87f80524b3a612b14e6dabcd14 to your computer and use it in GitHub Desktop.
copy_file.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
create_and_copy() { | |
file_path="/cns/li-d/home/zhanghan_brain/brain/gan/model_eval_all/" | |
eval_folder="$file_path$1/eval" | |
command1="fileutil mkdir -p $eval_folder --gfs_user zhanghan_brain" | |
echo $command1 | |
$command1 | |
echo | |
ori_path="/cns/li-d/home/zhanghan_brain/brain/gan/" | |
copy_file="$ori_path$1/eval/imagenet_64" | |
command2="fileutil cp -a -f -R $copy_file $eval_folder --gfs_user zhanghan_brain" | |
echo $command2 | |
echo | |
$command2 | |
} | |
declare -a List=("8" "16" "32" "64") | |
# declare -a List=("8") | |
for f in ${List[@]} | |
do | |
filename1="sngan_fancy_s_"$f"_d_40_g_10_gpu_4_fix_bug" | |
command1="create_and_copy $filename1" | |
echo $command1 | |
echo | |
$command1 | |
filename2="sngan_fancybaseline_s"$f"_d_40_g_10_gpu_4" | |
command2="create_and_copy $filename2" | |
echo $command2 | |
echo | |
$command2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment