[url=http://imgp.39yst.com/uploads/allimg/120221/11-120221130449.jpg[img]http://imgp.39yst.com/uploads/allimg/120221/11-120221130449-50.jpg]http://imgp.39yst.com/uploads/allimg/120221/11-120221130449.jpg[img]http://imgp.39yst.com/uploads/allimg/120221/11-120221130449-50.jpg[/url][url=http://imgp.39yst.com/uploads/allimg/120221/11-120221130450.jpg[img]http://imgp.39yst.com/uploads/allimg/120221/11-120221130450-50.jpghttp://imgp.39yst.com/uploads/al ... 120221130450-51.jpg[/img]]http://imgp.39yst.com/uploads/allimg/120221/11-120221130450.jpg[img]http://imgp.39yst.com/uploads/allimg/120221/11-120221130450-50.jpghttp://imgp.39yst.com/uploads/al ... 120221130450-51.jpg[/img][/url][/img]
[beyes@beyes shell] $ cat url.txt |sed 's/.jpg/.jpg\n/g' |sed '/^$/d'
http://imgp.39yst.com/uploads/allimg/120221/11-120221130449.jpg
http://imgp.39yst.com/uploads/al ... 120221130449-50.jpg
http://imgp.39yst.com/uploads/allimg/120221/11-120221130450.jpg
http://imgp.39yst.com/uploads/al ... 120221130450-50.jpg
http://imgp.39yst.com/uploads/al ... 120221130450-51.jpg
[beyes[url=u.php?uid=10][url=u.php?uid=10]@beyes [/url] [/url] shell]$ perl get.pl
http://imgp.39yst.com/uploads/allimg/120221/11-120221130449.jpg
http://imgp.39yst.com/uploads/al ... 120221130449-50.jpg
http://imgp.39yst.com/uploads/allimg/120221/11-120221130450.jpg
http://imgp.39yst.com/uploads/al ... 120221130450-50.jpg
http://imgp.39yst.com/uploads/al ... 120221130450-51.jpg
[beyes@beye shell]$ grep -P -o "http(.*?)(.jpg)" url.txt
http://imgp.39yst.com/uploads/allimg/120221/11-120221130449.jpg
http://imgp.39yst.com/uploads/al ... 120221130449-50.jpg
http://imgp.39yst.com/uploads/allimg/120221/11-120221130450.jpg
http://imgp.39yst.com/uploads/al ... 120221130450-50.jpg
http://imgp.39yst.com/uploads/al ... 120221130450-51.jpg
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |