#!/bin/bash

root_dir="/dp_s/OfficialProject"
output_file="/dp_s/merged_proj_ifo.txt"
> "$output_file"
for dir in "$root_dir"/*; do
    if [ -d "$dir" ]; then
        ifo_file="$dir/Proj.ifo"
        if [ -f "$ifo_file" ]; then
            # �� Proj.ifo �ļ�������׷�ӵ������ļ�
            cat "$ifo_file" >> "$output_file"
            # ���ӷָ���
            echo "LenheartMerge" >> "$output_file"
        fi
    fi
done