mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-04 07:33:56 +00:00
10 lines
223 B
Bash
10 lines
223 B
Bash
![]() |
#!/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
|