#! /Bin/sh
Echo "deleting @ 2x images at will may cause errors. Because the ios project will have more prefixes and resolutions, you can find the @ 2x image by yourself. Therefore, exercise caution when deleting @ 2x images"
Read-n1-p "[Y] read how to confirm @ 2x use [N] to directly search for images" answer
Case $ answer in
"Y" | "y ")
Open-a Safari "http://blog.csdn.net/hufeng825/article/details/8533647"
Echo-n "press any key to start the program ";
Read var
;;
"N" | "n ")
Echo "when the command is executed, the results report of imag.txt will be automatically generated in the current region after the search is completed"
;;
*)
;;
Esac
PROJ = 'Find.-name' *. xib '-o-name' *. [mh]''
For png in 'Find.-name' *. png''
Do
Pngname = 'basename $ png'
If! Grep-q $ pngname $ PROJ; then
Echo "$ png is not referenced"
Fi
Done
For jpg in 'Find.-name' *. jpg''
Do
Jpgname = 'basename $ jpg'
If! Grep-q $ jpgname $ PROJ; then
Echo "$ jpg is not referenced"
Fi
Done
> './Image.txt ';