Skip to content

Instantly share code, notes, and snippets.

@pcn
Created January 28, 2014 00:56
Show Gist options
  • Select an option

  • Save pcn/8660498 to your computer and use it in GitHub Desktop.

Select an option

Save pcn/8660498 to your computer and use it in GitHub Desktop.
Crude renaming of cassandra sstables from a 3-node to a 1-node cluster for testing
for f in $(find . -type f) ; do mv $f $(echo $f | sed 's/-\([0-9]*\)-/-300\1-/') ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment