I currently have this: gsutil ls gs://basty/*_TZ001.*
gs://basty/20201007_TZ001.csv
gs://basty/20201008_TZ001.csv
gs://basty/20201009_TZ001.csv
My problem is that I have bcuket with many files I want to delete all except 1 (20201009_TZ001.csv
)
I thought using bash or python I don't know.
illegal option -- i
on MacOS while testing it. It works if the xargs flag is changed to-I
– Sectionalism