[One (M7) General] AGPPC:
I re run the script and below is the output of both script:

** Please note i have renamed CU_shutdown_music.mp3 and due that script complaint about not able to remove the file**

C:\Android\sdk\platform-tools>adb push file.txt /tmp

3 KB/s (3989 bytes in 1.000s)

C:\Android\sdk\platform-tools>adb shell

~ # ls

ls

cache init.rc sys

data proc system

default.prop res tmp

dev root ueventd.goldfish.rc

etc sbin ueventd.rc

init sdcard

~ # for i in $(cat /tmp/file.txt); do rm ${i}; done

for i in $(cat /tmp/file.txt); do rm ${i}; done

': No such file or directoryp/10626_HTCCN_WO_3G_FHD2.apk

': No such file or directoryp/116114.apk

': No such file or directoryp/AlipayMSP.apk

': No such file or directoryp/AlipayNFC.apk

': No such file or directoryp/amap.apk

': No such file or directoryp/AMapNetworkLocation.apk

': No such file or directoryp/baidusearch.apk

': No such file or directoryp/CIMETPCHS.apk

': No such file or directoryp/CIMETPCHT.apk

': No such file or directoryp/CMBEWallet.apk

': No such file or directoryp/CMBMobileBank.apk

': No such file or directoryp/CN_MyHTC.apk

': No such file or directoryp/ctrip.apk

': No such file or directoryp/DianPing.apk

': No such file or directoryp/DoubanFM.apk

': No such file or directoryp/HTCCNGamehall.apk

': No such file or directoryp/HTCCN_FileManager.apk

': No such file or directoryp/HTCCN_iReader.apk

': No such file or directoryp/HTCCN_Meituxiuxiu_pintu.apk

': No such file or directoryp/HTCCN_Voice.apk

': No such file or directoryp/HTCMarket.apk

': No such file or directoryp/HtcSpeakIFLY.apk

': No such file or directoryp/HtcSpeak_HFM.apk

': No such file or directoryp/HTCVideos.apk

': No such file or directoryp/iFlyVoiceDictation.apk

': No such file or directoryp/LeTVPlayer.apk

': No such file or directoryp/mapbar.apk

': No such file or directoryp/MyVDisk.apk

': No such file or directoryp/NFCAppCenter.apk

': No such file or directoryp/PhoneMail.apk

': No such file or directoryp/QIYIVideoPlayer.apk

': No such file or directoryp/QM.apk

': No such file or directoryp/QQ2012.apk

': No such file or directoryp/QQVideoPlayer.apk

': No such file or directoryp/QunarNfc.apk

': No such file or directoryp/Sina_Weibo_FSPlugin.apk

': No such file or directoryp/Speech_Service_iFLY.apk

': No such file or directoryp/Stock_China.apk

': No such file or directoryp/TencentNews.apk

': No such file or directoryp/Tencent_Wechat_FSPlugin.apk

': No such file or directoryp/unicomclient_HTCT328W.apk

': No such file or directoryp/VAC.apk

': No such file or directoryp/VDisk.apk

': No such file or directoryp/vegetable.apk

': No such file or directoryp/WangPiaoPlugin.apk

': No such file or directoryp/Weibo.apk

': No such file or directoryp/weixin.apk

': No such file or directoryp/WoStore.apk

': No such file or directoryb/libPSKUser.so

': No such file or directoryb/libdpobj.so

': No such file or directoryb/libnh.so

': No such file or directoryb/libBslib.so

': No such file or directoryb/liblocSDK3.so

': No such file or directoryb/libAisound.so

': No such file or directoryb/libamapmapgv10.so

': No such file or directoryb/libmbsutils.so

': No such file or directoryb/libminimaphtc320.so

': No such file or directoryb/libmscamap.so

': No such file or directoryb/libtbt.so

': No such file or directoryb/libffmpeg_jni_qiyi_NORMAL_neon.so

': No such file or directoryb/libffmpeg_jni_qiyi_NORMAL_vfp.so

': No such file or directoryb/libffmpeg_qiyi_neon.so

': No such file or directoryb/libffmpeg_qiyi_vfp.so

': No such file or directoryb/libpkcs-util.so

': No such file or directoryb/libctripmsc.so

': No such file or directoryb/libentry.so

': No such file or directoryb/liblocSDK3.so

': No such file or directoryb/libminimapv320.so

': No such file or directoryb/libbds.so

': No such file or directoryb/libBDVoiceRecognitionClient_V1.so

': No such file or directoryb/liblocSDK_2.4.so

': No such file or directoryb/libloginshare.so

': No such file or directoryb/libshare.so

': No such file or directoryb/libpbpinyin.so

': No such file or directoryb/libtmfe30.so

': No such file or directoryb/libBMapApiEngine_v1_3_5.so

': No such file or directoryb/libqunarlib_2_0_1.so

': No such file or directoryb/libutility.so

': No such file or directoryb/libBMapApiEngine_v1_3_3.so

': No such file or directoryb/liblocSDK3.so

': No such file or directoryb/libAitalk.so

': No such file or directoryb/libcashier.so

': No such file or directoryb/libmapbar_search.so

': No such file or directoryb/libmapbar_tts.so

': No such file or directoryb/libmaprender3.so

': No such file or directoryb/libNativeNavi.so

': No such file or directoryb/libcrashreport.so

': No such file or directoryb/libexport.so

': No such file or directoryb/libexport_neon.so

': No such file or directoryb/libgetproperty.so

': No such file or directoryb/libhttpproxy.so

': No such file or directoryb/libpi.so

': No such file or directoryb/libsemaphore.so

': No such file or directoryb/libsta_jni.so

': No such file or directoryb/libtclog.so

': No such file or directoryb/libupdate.so

': No such file or directoryb/libamrnb.so

': No such file or directoryb/libaudiohelper.so

': No such file or directoryb/libcodecwrapper.so

': No such file or directoryb/liblbs.so

': No such file or directoryb/libmsfboot.so

': No such file or directoryb/libnativeencrypt.so

': No such file or directoryb/libsnapcore.so

': No such file or directoryb/libTencentVideoCommon.so

': No such file or directoryb/libVideoCtrl.so

': No such file or directoryb/libdict.so

': No such file or directoryb/libem_aisound5.so

': No such file or directoryb/libem_aitalk3.so

': No such file or directoryb/libem_aitalk4.so

': No such file or directoryb/libem_aitalk5.so

': No such file or directoryb/libem_ivw.so

': No such file or directoryb/libem_msc.so

': No such file or directoryb/libem_vad.so

': No such file or directoryb/libem_vad2.so

': No such file or directoryb/libAmmCommon.so

': No such file or directoryb/libcdntran.so

': No such file or directoryb/libImgTools.so

': No such file or directoryb/libmmdb.so

': No such file or directoryb/libMMProtocalJni.so

': No such file or directoryb/libQAFP.so

': No such file or directoryb/libQrcodeDecoder.so

': No such file or directoryb/libSync.so

': No such file or directoryb/libvoice.so

': No such file or directoryb/libvoipCodec.so

': No such file or directoryb/libvoipCodec_v5.so

': No such file or directoryb/libvoipMain.so

': No such file or directoryb/libvprotocal.so

': No such file or directoryb/libwhatsnew.so

': No such file or directoryb/libgeo_gc.so

': No such file or directoryb/libminimapv300.so

': No such file or directorystomize/resource/CU_bootup_animation.zip

': No such file or directorystomize/resource/CU_bootup_music.mp3

': No such file or directorystomize/resource/CU_shutdown_animation.zip

rm: can't remove '/system/customize/resource/CU_shutdown_music.mp3': No such fi

e or directory

~ # for i in $(cat /tmp/file.txt); do echo ${i}; done

for i in $(cat /tmp/file.txt); do echo ${i}; done

/system/app/10626_HTCCN_WO_3G_FHD2.apk

/system/app/116114.apk

/system/app/AlipayMSP.apk

/system/app/AlipayNFC.apk

/system/app/amap.apk

/system/app/AMapNetworkLocation.apk

/system/app/baidusearch.apk

/system/app/CIMETPCHS.apk

/system/app/CIMETPCHT.apk

/system/app/CMBEWallet.apk

/system/app/CMBMobileBank.apk

/system/app/CN_MyHTC.apk

/system/app/ctrip.apk

/system/app/DianPing.apk

/system/app/DoubanFM.apk

/system/app/HTCCNGamehall.apk

/system/app/HTCCN_FileManager.apk

/system/app/HTCCN_iReader.apk

/system/app/HTCCN_Meituxiuxiu_pintu.apk

/system/app/HTCCN_Voice.apk

/system/app/HTCMarket.apk

/system/app/HtcSpeakIFLY.apk

/system/app/HtcSpeak_HFM.apk

/system/app/HTCVideos.apk

/system/app/iFlyVoiceDictation.apk

/system/app/LeTVPlayer.apk

/system/app/mapbar.apk

/system/app/MyVDisk.apk

/system/app/NFCAppCenter.apk

/system/app/PhoneMail.apk

/system/app/QIYIVideoPlayer.apk

/system/app/QM.apk

/system/app/QQ2012.apk

/system/app/QQVideoPlayer.apk

/system/app/QunarNfc.apk

/system/app/Sina_Weibo_FSPlugin.apk

/system/app/Speech_Service_iFLY.apk

/system/app/Stock_China.apk

/system/app/TencentNews.apk

/system/app/Tencent_Wechat_FSPlugin.apk

/system/app/unicomclient_HTCT328W.apk

/system/app/VAC.apk

/system/app/VDisk.apk

/system/app/vegetable.apk

/system/app/WangPiaoPlugin.apk

/system/app/Weibo.apk

/system/app/weixin.apk

/system/app/WoStore.apk

/system/lib/libPSKUser.so

/system/lib/libdpobj.so

/system/lib/libnh.so

/system/lib/libBslib.so

/system/lib/liblocSDK3.so

/system/lib/libAisound.so

/system/lib/libamapmapgv10.so

/system/lib/libmbsutils.so

/system/lib/libminimaphtc320.so

/system/lib/libmscamap.so

/system/lib/libtbt.so

/system/lib/libffmpeg_jni_qiyi_NORMAL_neon.so

/system/lib/libffmpeg_jni_qiyi_NORMAL_vfp.so

/system/lib/libffmpeg_qiyi_neon.so

/system/lib/libffmpeg_qiyi_vfp.so

/system/lib/libpkcs-util.so

/system/lib/libctripmsc.so

/system/lib/libentry.so

/system/lib/liblocSDK3.so

/system/lib/libminimapv320.so

/system/lib/libbds.so

/system/lib/libBDVoiceRecognitionClient_V1.so

/system/lib/liblocSDK_2.4.so

/system/lib/libloginshare.so

/system/lib/libshare.so

/system/lib/libpbpinyin.so

/system/lib/libtmfe30.so

/system/lib/libBMapApiEngine_v1_3_5.so

/system/lib/libqunarlib_2_0_1.so

/system/lib/libutility.so

/system/lib/libBMapApiEngine_v1_3_3.so

/system/lib/liblocSDK3.so

/system/lib/libAitalk.so

/system/lib/libcashier.so

/system/lib/libmapbar_search.so

/system/lib/libmapbar_tts.so

/system/lib/libmaprender3.so

/system/lib/libNativeNavi.so

/system/lib/libcrashreport.so

/system/lib/libexport.so

/system/lib/libexport_neon.so

/system/lib/libgetproperty.so

/system/lib/libhttpproxy.so

/system/lib/libpi.so

/system/lib/libsemaphore.so

/system/lib/libsta_jni.so

/system/lib/libtclog.so

/system/lib/libupdate.so

/system/lib/libamrnb.so

/system/lib/libaudiohelper.so

/system/lib/libcodecwrapper.so

/system/lib/liblbs.so

/system/lib/libmsfboot.so

/system/lib/libnativeencrypt.so

/system/lib/libsnapcore.so

/system/lib/libTencentVideoCommon.so

/system/lib/libVideoCtrl.so

/system/lib/libdict.so

/system/lib/libem_aisound5.so

/system/lib/libem_aitalk3.so

/system/lib/libem_aitalk4.so

/system/lib/libem_aitalk5.so

/system/lib/libem_ivw.so

/system/lib/libem_msc.so

/system/lib/libem_vad.so

/system/lib/libem_vad2.so

/system/lib/libAmmCommon.so

/system/lib/libcdntran.so

/system/lib/libImgTools.so

/system/lib/libmmdb.so

/system/lib/libMMProtocalJni.so

/system/lib/libQAFP.so

/system/lib/libQrcodeDecoder.so

/system/lib/libSync.so

/system/lib/libvoice.so

/system/lib/libvoipCodec.so

/system/lib/libvoipCodec_v5.so

/system/lib/libvoipMain.so

/system/lib/libvprotocal.so

/system/lib/libwhatsnew.so

/system/lib/libgeo_gc.so

/system/lib/libminimapv300.so

/system/customize/resource/CU_bootup_animation.zip

/system/customize/resource/CU_bootup_music.mp3

/system/customize/resource/CU_shutdown_animation.zip

/system/customize/resource/CU_shutdown_music.mp3

~ #

Thanks