OpenMetadata/scripts/prepare_new_docs.sh
Imri Paran 67c57ec4f0
docs: 1.4.x-SNAPSHOT (#15506)
* docs: 1.4.x-SNAPSHOT
added partials
added images
updated paths
2024-03-11 09:42:26 +00:00

10 lines
223 B
Bash
Executable File

#!/bin/bash
# Example usage: find /path/to/docs/v1.4/ -type f | ./scripts/replace_version.sh v1.3 v1.4
OLD_VERION=$1
NEW_VERSION=$2
while IFS= read -r file
do
sed -i '' -e 's/'$OLD_VERION'/'$NEW_VERSION'/g' "$file"
done