google cloud storage - Moving multiple files with gsutil -


let's i've got following files in google cloud storage bucket:

file_a1.csv file_b2.csv file_c3.csv 

now want move subset of these files, lets file_a1.csv , file_b2.csv. that:

gsutil mv gs://bucket/file_a1.csv gs://bucket/file_a11.csv gsutil mv gs://bucket/file_b2.csv gs://bucket/file_b22.csv 

this approach requires 2 call of more or less same command , moves each file separately. know, if move complete directory can add -m option in order accelerate process. however, unfortunately want move subset of files , keep rest untouched in bucket.

when moving 100 files way need execute 100 commands or , becomes quite time consuming. there way combine each of 100 files 1 command addtionally -m option?

gsutil not support create number of shell scripts, each performing portion of moves, , run them concurrently.

note gsutil mv based on syntax of unix mv command, doesn't support feature you're asking for.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -