OPM / opm-reference-manual

Other
1 stars 5 forks source link

ROCKWNODE keyword should be ROCKWNOD #195

Closed gdfldm closed 4 months ago

gdfldm commented 4 months ago

The file ROCKWNODE.fodt should be ROCKWNOD.fodt, and the keyword name should be changed from ROCKWNODE to ROCKWNOD in the manual. Can the keyword and file names be changed without breaking anything?

blattms commented 4 months ago

On linux using bash:

for i in $(find parts keyword-names -type f); do sed -i -e "s/ROCKWNODE/ROCKWNOD/g" $i; done
file=$(find parts -name ROCKWNODE.fodt)
newfile=$(echo $file | sed -e "s/ROCKWNODE/ROCKWNOD/g")
git mv $file $newfile

I am making a PR for review.

(Edited to fix the recipe. Previous version missed stuff.)