How to remove extension name from multiple files in google cloud storage?

Tabish Rizvi

I have files like
gs://bucketname/thumbnails/12321.jpg
gs://bucketname/thumbnails/44666.jpg
gs://bucketname/thumbnails/89774.jpg
gs://bucketname/thumbnails/63333.jpg
...

in google cloud storage and I want the end result as
gs://bucketname/thumbnails/12321
gs://bucketname/thumbnails/44666
gs://bucketname/thumbnails/89774
gs://bucketname/thumbnails/63333
...

I couldn't find an appropriate gsutil command for this?

Mike Schwartz

gsutil doesn't have built-in support to do what you're trying to do. You could generate a script to do it using something like:

gsutil ls gs://your-bucket/**.jpg | sed 's/\(.*\).jpg/gsutil mv & \1/'

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to remove 180+ days old files from Google Cloud Storage?

From Dev

Loading multiple files from Google Cloud Storage into a single Pandas Dataframe

From Dev

How to download multiple files from GCP using Google.Cloud.Storage in .net?

From Dev

How to access chrome storage from multiple HTML files in a chrome extension

From Dev

How to download files from Google Cloud Storage using curl

From Dev

How to copy files from colab or cloud storage to google drive?

From Dev

Google Cloud Storage Joining multiple csv files

From Dev

How to read chunks of multiple large CSV files from google cloud storage using Dask without overloading the memory all at once

From Dev

Downloading multiple files from a Cloud Storage bucket

From Dev

streaming gzipped files from google cloud storage

From Dev

Accessing files from Google cloud storage in RStudio

From Dev

How to load numpy npz files in google-cloud-ml jobs or from Google Cloud Storage?

From Dev

How to concatenate a million files in Google Cloud Storage

From Dev

How to Read Private Files on Google Cloud Storage

From Dev

Remove all files under a folder Google Cloud Storage

From Java

How to upload multiple files to Google Cloud Storage in a single call using Java API?

From Dev

how to remove php extension from the files in root

From Dev

async upload multiple files to google cloud storage bucket

From Dev

Uploading Multiple Files to Google Cloud Storage using For Loop

From Dev

How to decrypt file from Google Cloud Storage?

From Dev

How to read data from Google storage cloud to Google cloud datalab

From Dev

How to connect to Google Cloud Storage from Google Cloud Functions NodeJS

From Dev

How to load a file from google cloud storage to google cloud function

From Dev

How to compress google cloud storage files ? google app engine

From Dev

How to read all CSV files from google cloud storage location into a single pandas dataframe?

From Dev

How to delete files from Google Cloud Storage in a batch? (Node.js)

From Dev

How to move files in Google Cloud Storage from one bucket to another bucket by Python

From Dev

How to list all the files from a bucket in Google Cloud Storage using PHP?

From Dev

Access private files from a google cloud storage bucket

Related Related

  1. 1

    How to remove 180+ days old files from Google Cloud Storage?

  2. 2

    Loading multiple files from Google Cloud Storage into a single Pandas Dataframe

  3. 3

    How to download multiple files from GCP using Google.Cloud.Storage in .net?

  4. 4

    How to access chrome storage from multiple HTML files in a chrome extension

  5. 5

    How to download files from Google Cloud Storage using curl

  6. 6

    How to copy files from colab or cloud storage to google drive?

  7. 7

    Google Cloud Storage Joining multiple csv files

  8. 8

    How to read chunks of multiple large CSV files from google cloud storage using Dask without overloading the memory all at once

  9. 9

    Downloading multiple files from a Cloud Storage bucket

  10. 10

    streaming gzipped files from google cloud storage

  11. 11

    Accessing files from Google cloud storage in RStudio

  12. 12

    How to load numpy npz files in google-cloud-ml jobs or from Google Cloud Storage?

  13. 13

    How to concatenate a million files in Google Cloud Storage

  14. 14

    How to Read Private Files on Google Cloud Storage

  15. 15

    Remove all files under a folder Google Cloud Storage

  16. 16

    How to upload multiple files to Google Cloud Storage in a single call using Java API?

  17. 17

    how to remove php extension from the files in root

  18. 18

    async upload multiple files to google cloud storage bucket

  19. 19

    Uploading Multiple Files to Google Cloud Storage using For Loop

  20. 20

    How to decrypt file from Google Cloud Storage?

  21. 21

    How to read data from Google storage cloud to Google cloud datalab

  22. 22

    How to connect to Google Cloud Storage from Google Cloud Functions NodeJS

  23. 23

    How to load a file from google cloud storage to google cloud function

  24. 24

    How to compress google cloud storage files ? google app engine

  25. 25

    How to read all CSV files from google cloud storage location into a single pandas dataframe?

  26. 26

    How to delete files from Google Cloud Storage in a batch? (Node.js)

  27. 27

    How to move files in Google Cloud Storage from one bucket to another bucket by Python

  28. 28

    How to list all the files from a bucket in Google Cloud Storage using PHP?

  29. 29

    Access private files from a google cloud storage bucket

HotTag

Archive