16 lines
504 B
Bash
16 lines
504 B
Bash
#!/bin/bash
|
|
|
|
bos_dir="bos://dg-algo/"
|
|
|
|
|
|
while IFS= read -r prefix
|
|
do
|
|
/home/users/xianbao01.hou/linux-bcecmd-0.4.7/bcecmd bos ls $bos_dir$prefix/ --all | grep "2025-05-13 19:1" | awk '{print $5}' > png-list.txt
|
|
while IFS= read -r png
|
|
do
|
|
full_path="${bos_dir}${prefix}/${png}"
|
|
if ! /home/users/xianbao01.hou/linux-bcecmd-0.4.7/bcecmd bos rm "$full_path" --yes >> /dev/null 2>&1; then
|
|
echo "$full_path" >> png-delete.txt
|
|
fi
|
|
done < ./png-list.txt
|
|
done < dir-list.txt |