suse Posted Március 12, 2008 Share Posted Március 12, 2008 Szeretnék írni egy scipt-et, amivel bizonyos letöltéseimet tudnám automatizálni, de sajnos egy ponton elakadtam. Egy adott url-ből szeretném kinyerni a letöltendő fájl nevét pl. ebből: Hidden Content Give reaction or reply to this topic to see the hidden content. a file.kiterj részt. Már egy jó ideje szenvedek vele. Tudom hogy nem túl bonyolult, de sehogy nem tudok rájönni, hogy mi lenne az a legegyszerűbb regexp amivel megoldható a dolog. Valaki segítsen, pls! Idézés Link to comment Share on other sites More sharing options...
Smurf Posted Március 12, 2008 Share Posted Március 12, 2008 Hidden Content Give reaction or reply to this topic to see the hidden content. A /-ek mentén feldarabolod és az eredményként kapott tömbből kiveszed. Szerk.: most látom, h oprendszerek fórum. Bashben: Hidden Content Give reaction or reply to this topic to see the hidden content. Elmenti a tömb elemeit határoló karakter beállítást, beállítja, h a stringet /-enként darabolja tömbbe, beolvassa a feldarabolt stringet a tömbbe, visszaállítja az eredeti beállítást. Ez meg elvileg bármilyen POSIX shellben: Hidden Content Give reaction or reply to this topic to see the hidden content. Idézés Link to comment Share on other sites More sharing options...
suse Posted Március 17, 2008 Author Share Posted Március 17, 2008 Bocs Smurf, hogy csak most köszönöm meg, az elmúlt jó néhány napban nem volt valami sok időm scriptezgetni, de majd most nekiülök. Szóval köszönöm a segítséget. Idézés Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.