Alexander_88
07-04-2015, 13:08
Здравствуйте, подскажите, пожалуйста, как можно удалить ссылки из первого файла тхт, если они уже есть во втором файле тхт:
пример:
в первом блокноте ссылки:
http://s5.depic.me/01435/07sv55ge07ui_o/0129swl_m.jpg
http://s5.depic.me/01435/m9fgc4zc0aub_o/0130swl_t.jpg
http://s5.depic.me/01435/cddclxav8syg_o/0130swl_m.jpg
http://s5.depic.me/01435/g4bol54sgci3_o/0131swl_m.jpg
http://s7.depic.me/01435/w9c1kgq8ht5m_o/0131swl_t.jpg
http://s5.depic.me/01435/y7pkiuinqxof_o/0132swl_m.jpg
http://s7.depic.me/01435/g0rhpr5qwkt0_o/0132swl_t.jpg
http://s7.depic.me/01435/bxe3mqeapav8_o/0133swl_t.jpg
во втором блокноте:
http://s5.depic.me/01435/g4bol54sgci3_o/0131swl_m.jpg
http://s7.depic.me/01435/w9c1kgq8ht5m_o/0131swl_t.jpg
после применения скрипта, первый блокнот должен измениться на:
http://s5.depic.me/01435/07sv55ge07ui_o/0129swl_m.jpg
http://s5.depic.me/01435/m9fgc4zc0aub_o/0130swl_t.jpg
http://s5.depic.me/01435/cddclxav8syg_o/0130swl_m.jpg
http://s5.depic.me/01435/y7pkiuinqxof_o/0132swl_m.jpg
http://s7.depic.me/01435/g0rhpr5qwkt0_o/0132swl_t.jpg
http://s7.depic.me/01435/bxe3mqeapav8_o/0133swl_t.jpg
т.е. пустых строк после удаления не должно остаться :)
пример:
в первом блокноте ссылки:
http://s5.depic.me/01435/07sv55ge07ui_o/0129swl_m.jpg
http://s5.depic.me/01435/m9fgc4zc0aub_o/0130swl_t.jpg
http://s5.depic.me/01435/cddclxav8syg_o/0130swl_m.jpg
http://s5.depic.me/01435/g4bol54sgci3_o/0131swl_m.jpg
http://s7.depic.me/01435/w9c1kgq8ht5m_o/0131swl_t.jpg
http://s5.depic.me/01435/y7pkiuinqxof_o/0132swl_m.jpg
http://s7.depic.me/01435/g0rhpr5qwkt0_o/0132swl_t.jpg
http://s7.depic.me/01435/bxe3mqeapav8_o/0133swl_t.jpg
во втором блокноте:
http://s5.depic.me/01435/g4bol54sgci3_o/0131swl_m.jpg
http://s7.depic.me/01435/w9c1kgq8ht5m_o/0131swl_t.jpg
после применения скрипта, первый блокнот должен измениться на:
http://s5.depic.me/01435/07sv55ge07ui_o/0129swl_m.jpg
http://s5.depic.me/01435/m9fgc4zc0aub_o/0130swl_t.jpg
http://s5.depic.me/01435/cddclxav8syg_o/0130swl_m.jpg
http://s5.depic.me/01435/y7pkiuinqxof_o/0132swl_m.jpg
http://s7.depic.me/01435/g0rhpr5qwkt0_o/0132swl_t.jpg
http://s7.depic.me/01435/bxe3mqeapav8_o/0133swl_t.jpg
т.е. пустых строк после удаления не должно остаться :)