chatbot / scripts /prepend_raw_hface_block_readme.sh
Evan Lesmez
nbdevify the project
adaea7c
raw
history blame
403 Bytes
#!/bin/bash
yaml_file="hface.yaml"
readme_file="README.md"
# Read the content of the YAML file
yaml_content=$(cat "$yaml_file")
# Read the content of the README file
readme_content=$(cat "$readme_file")
# Combine the YAML content and README content
combined_content="$yaml_content/n$readme_content"
# Overwrite the README file with the combined content
echo -e "$combined_content" > "$readme_file"