Skip to content

Instantly share code, notes, and snippets.

@ixtiyoruz
Created January 31, 2020 07:36
Show Gist options
  • Save ixtiyoruz/649450c065594ee90070c7caeb73f2a6 to your computer and use it in GitHub Desktop.
Save ixtiyoruz/649450c065594ee90070c7caeb73f2a6 to your computer and use it in GitHub Desktop.
bash scripts i used
@ixtiyoruz
Copy link
Author

copying from one folder to another folder

array=(000001 000002 000009 000016 000020 000023 000025 000026 000028 000044 000064 000083 000092 000093 000094 000096 000103 000115 000123 000128 000129 000130 000131 000132 000133 000134 000135 000136 000137 000138 000139 000141 000142 000146 000147 000148 000151 000165 000172 000180 000187 000190 000197 000199 000203 000206 000213 000214 000217 000220 000223 000225 000227 000228 000229 000230 000231 000232 000233 000234 000235 000237 000239 000241 000243 000244 000246 000247 000250 000252 000253 000254 000256 000259 000261 000262 000263 000272 000276 000278 000280 000282 000283 000287 000289 000292 000300 000306 000311 000312 000316 000318 000323 000331 000333 000334 000335 000358 000374 000380 000393 000399 000403 000404 000407 000409 000414 000416 000417 000425 000428 000429 000431 000432 000434 000435 000438 000454 000456 000461 000464 000467 000470 000476 000487 000488 000490 000508 000511 000512 000519 000521 000524 000526 000532 000537 000563 000565 000566 000567 000568 000569 000576 000590 000602 000625 000640 000643 000649 000652 000653 000654 000655 000656 000658 000664 000669 000671 000685 000701 000705 000709 000712 000714 000715 000750 000754 000756 000757 000758 000763 000769 000771 000772 000773 000789 000810 000813 000822 000823 000825 000827 000828 000830 000831 000832 000833 000834 000836 000837 000839 000843 000848 000850 000851 000852 000856 000859 000865 000868 000879 000880 000883 000920 000921 000922 000923 000925 000929 000931 000932 000998 001000 001035 001059 001095 001110 001112 001121 001123 001141 001145 001208 001213 001215 001218 001247 001263 001264 001265 001284 001302 001303 001305 001339 001341 001343 001345 001347 001348 001349 001350 001352 001353 001354 001355 001356 001357 001360 001404 001408 001409 001414 000003 000047 000069 000070 000143 000145 000219 000224 000226 000236 000286 000288 000294 000324 000385 000386 000394 000401 000402 000430 000433 000436 000437 000555 000592 000651 000768 000829 000872 000926 000930 000999 001001 001058 001122 001212 001346 001405 001406 001407)



for i in "${array[@]}"
do 
    # echo $i
    echo "/media/ixtiyor/New Volume1/Datasets/accident/extracted_frames/extracted_frames/"$i
    cp -a "/media/ixtiyor/New Volume1/Datasets/accident/extracted_frames/extracted_frames/"$i "/media/ixtiyor/New Volume1/Datasets/accident/extracted_frames_copy/"$i
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment