Untitled

Anonymous
plain_text
11/15/2023 7:42 PM
304 B
25
Indexable
#!/bin/bash

# Your file path
file_path="/path/to/your/file.yaml"

# The old and new tags
old_tag="v1.15.1-1"
new_tag="v1.15.1-2"

# Use sed to replace the tag in the file
sed -i "s/^tag: $old_tag$/tag: $new_tag/" "$file_path"
Editor is loading...
Leave a Comment