16 lines
471 B
Bash
16 lines
471 B
Bash
|
|
#!/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
|
|||
|
|
# <20><> Proj.ifo <20>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|||
|
|
cat "$ifo_file" >> "$output_file"
|
|||
|
|
# <20><><EFBFBD>ӷָ<D3B7><D6B8><EFBFBD>
|
|||
|
|
echo "LenheartMerge" >> "$output_file"
|
|||
|
|
fi
|
|||
|
|
fi
|
|||
|
|
done
|