script
To whom it may concern,
I have a question about a script I need to create. The question is that when I am given the log file scootmail_log.txt created from people entering information in a form requesting to be added to an opt-in email list, I need to create a script to extract the email and real name from the log and put in a new file called email.txt in the format FirstName LastName <emailaddress@domain.ext>. I cannot seem to copy and paste the contents of the file to this thread, so if no one can help me without seeing the log file that is fine. But if anyone can help me without seeing the file then any help would be greatly appreciated. |
well we have to know what the file looks like. there's certainly nothing technical on the side of LQ.org preventing a copy and paste... without that, i can say i'm sure grep and sed will sort you out for one method. another would be awk.
|
script
Here is what a portion of the file looks like:
put+me+through+hell+to+get+it.&sbutton=Submit recipient=kf4cun@aol.com&subject=Member+of+email+list.&realname=Gordon+Mills&e ay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+___________________+sc ter%2C+which+I+bought+from+_____________________++and+I+would%2Fwould+not+reco end+it.%0D%0A++&sbutton=Submit recipient=siller_nicolas@yahoo.com&subject=Member+of+email+list.&realname=Nick iller&essay+area=i+own+a+honda+ruckus+but+im+considering+a+tank+sportyde+150+a +tank+scooters+relieable%3F%3F+please+let+me+know%0D%0A%0D%0Anick%0D%0A++&sbut n=Submit recipient=marilynbeatrice%40verizon.net&subject=Member+of+email+list.&realname arilyn&essay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+____________ _____+scooter%2C+which+I+bought+from+_____________________++and+I+would%2Fwoul not+recommend+it.%0D%0A++&sbutton=Submit recipient=neil@triad.rr.com&subject=Member+of+email+list.&realname=neil+VonCan n&essay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+_ROKETA__________ ______+scooter%2C+which+I+bought+from+_____________________++and+I+would%2Fwou +not+recommend+it.%0D%0A++&sbutton=Submit recipient=pmk2999@yahoo.com&subject=Member+of+email+list.&realname=pete&essay+ ea=%28please+edit+as+appropriate%29++%0D%0AI+own+a+meitian+gmi%28qmb139%29scoo r%2C+which+I+bought+from+a+private+owner+and+I+would+recommend+it.%0D%0A++keho sbutton=Submit recipient=lizzymagu%40yahoo.com&subject=Member+of+email+list.&realname=Elizabe +Magluyan&essay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+2006+Tank 50CC+scooter%2C+which+I+bought+from+XXXMotorsports.+I+bought+it+yesterday%2C+a +I+have+not+ridden+it+much%2C+except+once+around+the+parking+lot.+&sbutton=Sub t recipient=fulltimerart@yahoo.com&subject=Member+of+email+list.&realname=Art+Pr r&essay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+2004+CFMOTO+Revo+ 0cc__________________+scooter%2C+which+I+bought+from+Fun+Wheels_______________ ____++and+I+would+recommend+it.%0D%0A++&sbutton=Submit recipient=jamestjarzab%40gmail.com&subject=Member+of+email+list.&realname=Jim+ rzab&essay+area=%28please+edit+as+appropriate%29++%0D%0AI+plan+on+buying+a+Tan scooter%2C+which+I+will+buy+on+the+internet.%0D%0A++&sbutton=Submit recipient=--------------------------0704&subject=Member+of+email+list.&realnam ------------------------------&essay+area=------------------------------------ -----------------%0D%0A++&sbutton=Submit recipient=troystover70@hotmail.com&subject=Member+of+email+list.&realname=Troy ssay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+TANK+150CC+Urban+Rac +DE_________________+scooter%2C+which+I+bought+from+_____________________++and +would%2Fwould+not+recommend+it.%0D%0A++&sbutton=Submit recipient=wgmentgeorge@yahoo.com&subject=Member+of+email+list.&realname=Willia Moskal&essay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+____________ _____+scooter%2C+which+I+bought+from+_____________________++and+I+would%2Fwoul not+recommend+it.%0D%0A++&sbutton=Submit recipient=poorboy%40usfamily.net&subject=Member+of+email+list.&realname=gen+mc rthy&essay+area=%28please+edit+as+appropriate%29++%0D%0AI%2Cm+thinking+of+buyi +a++tank+250+or+jalon%2Fstrada+or+hitong_what+do+you+think+would+be+my+best_be and+most+trouble+free+could+you+tell+me+of+a+good+internet+dealer%3F%0D%0A++&s tton=Submit recipient=jslorp%40comcast.net&subject=Member+of+email+list.&realname=&essay+a a=%28please+edit+as+appropriate%29++%0D%0AI+own+a++Vespa+scooter%2C+which+I+bo ht+from+a+dealer%2C++and+I+would+recommend+it.%0D%0A++&sbutton=Submit recipient=kingmidget@bellsouth.net&subject=Member+of+email+list.&realname=Bob+ rdison&essay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+2007+Roketta 50cc+motor___________________+scooter%2C+which+I+bought+from+Scooter+Demand+on y+internet_____________________++and+I+would+recommend+it.%0D%0A++&sbutton=Sub t recipient=wilddakotaman@gmail.com&subject=Member+of+email+list.&realname=Wayne ice&essay+area=%28please+edit+as+appropriate%29++%0D%0AI+own+a+_Strada+RX200HP ________________+scooter%2C+which+I+bought+from+_PSF____________________++and+ would+recommend+it.%0D%0A++&sbutton=Submit recipient=home@foo.com&subject=Member of email list.&realname=drik&essay area= lease edit as appropriate) I own a ___________________ scooter, which I bought from _____________________ and I would/would not recommend it. &sbutton=Submit ------------------------------- recipient=nobreak<4pfoo.com&subject=Member of email list.&realname=spog&essay ea=<28please edit as appropriate<29 <p><p>I own a ___________________ scooter C which I bought from _____________________ and I would<2Fwould not recommend t.<p><p> &sbutton=Submit ------------------------------- recipient=drookle%40foo.com&subject=Member of email list.&realname=spog&essay ea=%28please edit as appropriate%29 %0D%0AI own a ___________________ scooter C which I bought from _____________________ and I would%2Fwould not recommend t.%0D%0A &sbutton=Submit ------------------------------- recipient=fast%40foo.com&subject=Member of email list.&realname=spog&essay are %28please edit as appropriate%29 %0D%0AI own a ___________________ scooter%2C hich I bought from _____________________ and I would%2Fwould not recommend it 0D%0A &sbutton=Submit recipient=daitke2525@rogers.com&subject=Member of email list.&realname=Duncan& say area=%28please edit as appropriate%29 %0D%0AI own a Yamaha Vino 125cc____ ___________ scooter%2C which I bought from Second Hand____________________ an I would%2Fwould not recommend it. Would%0D%0A &sbutton=Submit recipient=wcourt%40sbcsc.k12.in.us&subject=Member of email list.&realname=Bill ourt&essay area= %0D%0AI own a Tank 150 Racer scooter%2C which I bought from _ %27s Cycle in Mishawaka%2C IN and I would recommend it.%0D%0A &sbutton=Submi recipient=wharris%40aug.com&subject=Member of email list.&realname=wayne&essay rea=%28please edit as appropriate%29 %0D%0AI own a Roketa Fiji 150 which I pu hase and it runs and handles good except I can%27t seen to get the headlights d taglight to work%0D%0A &sbutton=Submit recipient=guillermo%40nautilusbaja.com&subject=Member of email list.&realname= illermo Aguilar&essay area=%28please edit as appropriate%29 %0D%0AI own a 200 Tank Touring 150 scooter%2C which I bought from scooterdemand.com and I would commend it.%0D%0A &sbutton=Submit recipient=jusdoit@peoplepc.com&subject=Member of email list.&realname=Robert W liams&essay area=%28please edit as appropriate%29 %0D%0AI own a _____________ ____ scooter%2C which I bought from _____________________ and I would%2Fwould ot recommend it.%0D%0A &sbutton=Submit recipient=k.lofblad.64@cox.net&subject=Member of email list.&realname=kurt&ess area=%28please edit as appropriate%29 %0D%0AI own a _viva__________________ ooter%2C which I bought from ________privite_____________ and I would%2Fwould ot recommend it.%0D%0A &sbutton=Submit recipient=benc4u@earthlink.net&subject=Member of email list.&realname=Ben Cerv tes&essay area=%28please edit as appropriate%29 %0D%0AI own a Derbi Boulevard 50 scooter%2C which I bought from Bay Area Motor scooters and I would recomme it.%0D%0A &sbutton=Submit recipient=pi3and4r7@hotmail.com&subject=Member of email list.&realname=Lou&ess area=%28please edit as appropriate%29 %0D%0AI own a suzuki 650 burgman - 200 __________________ scooter%2C which I bought from pete%27s cycle______________ _____ and I would%2Frecommend it.%0D%0A &sbutton=Submit recipient=sjsmoove232@aol.com&subject=Member of email list.&realname=Samuel J. c Farland&essay area=%28please edit as appropriate%29 %0D%0AI own a Roketa%2C ermuda%2C 150 cc scooter%2C which I bought from Dealer who is no longer selli scooters%0D%0A &sbutton=Submit recipient=sjsmoove232@aol.com&subject=Member of email list.&realname=Samuel J. c Farland&essay area=%28please edit as appropriate%29 %0D%0AI own a Roketa%2C ermuda%2C 150 cc scooter%2C which I bought from Dealer who is no longer selli scooters%0D%0A &sbutton=Submit recipient=mstrbubbie@yahoo.com&subject=Member of email list.&realname=Tom&essa area=%28please edit as appropriate%29 %0D%0AI own a rocketa 200 cc enduro. I nted to test the rocketa engine before i bought a more exspensive scooter from hem%2C which I bought from _XXX-motorsports and I would recommend them. They a o own scootersfactory.com.Well just to let you know rocketa%27s air cooled eng es work very well.I beat it up pretty good and it keeps on going.I will not be cared to buy a rocketa brand scooter.It will be a 250 model I%27m 6 foot and 2 plus the speed around our area is 70 on the Hwy and most people around here d ve 80 to 85 i don%27t want to to get run over%0D%0A &sbutton=Submit recipient=ptiger57@sbcglobal.net&subject=Member of email list.&realname=MIKE B GGS&essay area=%28please edit as appropriate%29 %0D%0AI own a _PRIDE_________ _______ scooter%2C which I bought from _HOME HEALTH_CARE________________ and Fwould not recommend it.I don%27t have a scott%0D%0A &sbutton=Submit recipient=robert34772@yahoo.com&subject=Member of email list.&realname=Robert rris&essay area=%28please edit as appropriate%29 %0D%0AI own a ______________ ___ scooter%2C which I bought from _____________________ and I would%2Fwould t recommend it.%0D%0A &sbutton=Submit recipient=fredwahl1%40mac.com&subject=Member of email list.&realname=Fred Wahl rom&essay area=%28please edit as appropriate%29 %0D%0AI own a Kymco ZX-50-Kym Agility 125___________________ scooter%2C which I bought from _neighbor%2FPol is Rec in Wildwood FL____________________ and I would recommend both%0D%0AI a looking at 150 retro from EVO%0D%0A &sbutton=Submit recipient=daitke2525@rogers.com&subject=Member of email list.&realname=Duncan& say area=%28please edit as appropriate%29 %0D%0AI own a __Kimco Bet%26Win 250 _______________ scooter%2C which I bought from ____Pickering Motors___________ ____ and I would recommend it.%0D%0A &sbutton=Submit recipient=billcarroll@cfl.rr.com&subject=Member of email list.&realname=Willia Carroll&essay area=%28please edit as appropriate%29 %0D%0AI own a 150 cc air olod__Hi Tong_________________ scooter%2C which I bought from _beachside cycle orld in Flager%2Cfl.. I would recomend it.%0D%0A &sbutton=Submit recipient=piazzadelvaticano@gmail.com&subject=Member of email list.&realname=A son Edwards&essay area= %0D%0AI own a _Capri Roketa 150 CC scooter%2C which I ought from Scooterfactory.com and I would recommend it because it%27s a lot o fun. Get a manual though for it so that you can keep up on the repair.%0D%0A button=Submit recipient=kingmidget@bellsouth.net&subject=Member of email list.&realname=Bob rdison&essay area=%28please edit as appropriate%29 %0D%0AI own a _2007 Roketa ________________ scooter%2C which I bought from ___scooter demand_____________ ___ and I would recommend it.%0D%0A &sbutton=Submit recipient=kstampfle@neo.rr.com&subject=Member of email list.&realname=&essay a a=%28please edit as appropriate%29 %0D%0AI own a _Yamati 250cc_______________ _ scooter%2C which I bought from ___ND Powersports__________________ and I %2 ould not recommend it.%0D%0A &sbutton=Submit recipient=jimyed@centurytel.net&subject=Member of email list.&realname=Jim Mul k&essay area=%28please edit as appropriate%29 %0D%0AI own a Honda Elite 50___ ___________ scooter%2C which I bought from private owner_____________________ nd I would%2Frecommend it.I%27m very interested in a Tank Classic 150%0D%0A & utton=Submit recipient=fesjr@localnet.com&subject=Member of email list.&realname=Frank Sand s%2CJr.&essay area=I am a 79 yr old Male with limited vision%2Ccan lega%3Blly ive.Rode motorcycles since ae 15.Would like to own fair-sized scooter%2Clarger han 50cc.%2Cbut have limited income.Enjoy reading about two-wheelers.Marr.56 y %2C57 coming up in June%2CLord Willing.%28Also ae 80 in July%2Csame provision% .Like to play guitar%2Cown 3%2Cwill sell 2.Stay Well.%0D%0A &sbutton=Submit recipient=mimi055@bellsouth.net&subject=Member of email list.&realname=Mireya& say area=%28please edit as appropriate%29 %0D%0AI own a ____Kymco People 150_ ____________ scooter%2C which I bought from ____Dealer in Atlanta_____________ __ and I would recommend it.%0D%0AHaving some repair probelms%2C it will not tart anymore Model 2002 only has 424 miles could it be from being out in the r n so much%3F Can you put on wider tires on this model%3F%0D%0A &sbutton=Subm recipient=------------------------------&subject=Member of email list.&realnam ------------------------------&essay area=------------------------------------ -----%0D%0A &sbutton=Submit recipient=rso623s@aol.com&subject=Member of email list.&realname=Scott Orcutt& say area=I don%27t own a Scooter at this time. Many years ago I owned a Honda 60t motorcycle. I%27m not sure of what scooter I%27m interested in but I%27m oking at 250cc and above. I would be traveling on rt. 287 and rt. 22 here in w Jersey and need something with alittle power.&sbutton=Submit recipient=orion@dcwis.com&subject=Member of email list.&realname=Heinz M. Erke essay area=%28please edit as appropriate%29 %0D%0AI own a NST 250 Touring ___ ______________ scooter%2C which I bought from All New Sports LLC Wichita%2C KS ___________________ and I would recommend it.%0D%0A &sbutton=Submit recipient=universe@sio.midco.net&subject=Member of email list.&realname=Bill S meling&essay area=DOn%27t own.just considering.%0D%0A &sbutton=Submit recipient=walt@terrod.com&subject=Member of email list.&realname=Walt&essay ar =%28please edit as appropriate%29 %0D%0AI own a ____Honda Elite 80__ scooter% which I bought from ___Local Honda dealer___________ and I would recommend i %0D%0A &sbutton=Submit recipient=imbriangregory@yuahoo.com&subject=Member of email list.&realname=bri gregory&essay area=%28please edit as appropriate%29 %0D%0AI own a ___________ ______ scooter%2C which I bought from _____________________ and I would%2Fwou not recommend it.%0D%0A i am thinking about minimilst scooter 50cc at bes rice or 150 cc with 70-80 mpg&sbutton=Submit recipient=wrkoffcshn%40gmail.com&subject=Member of email list.&realname=Jason& say area=I am awaiting arrival of a RR 250 race scooter%0D%0A &sbutton=Submit recipient=mmaaref1%40aol.com&subject=Member of email list.&realname=mustapha m ref&essay area=%28please edit as appropriate%29 %0D%0AI own a _tank 150 de to ing__________________ scooter%2C which I bought from __absolutely scooters elg il___________________ and I would%2Fnwoul recommend it.%0D%0A &sbutton=Sub t recipient=dave.ricksmotorsports@yahoo.co&subject=Member of email list.&realnam dave lidyoff&essay area=%28please edit as appropriate%29 %0D%0AI own a ______ ___________ scooter%2C which I bought from _____________________ and I would% would not recommend it.%0D%0A &sbutton=Submit recipient=jeff1508%40dejazzd.com&subject=Member of email list.&realname=Jeff&e ay area= %0D%0AI want to own a _Roadrunner or a Bali 250cc__________________ & utton=Submit recipient=dhf%40dhfrench.net&subject=Member of email list.&realname=Donald Fre h&essay area= %0D%0AI own a Tank touring 150 scooter%2C which I bought from se nd hand and I would recommend it with a few cautions. I am also buying a Maxi cooter shortly.%0D%0A &sbutton=Submit recipient=dhf%40dhfrench.net&subject=Member of email list.&realname=Donald Fre h&essay area= %0D%0AI own a Tank touring 150 scooter%2C which I bought from se nd hand and I would recommend it with a few cautions. I am also buying a Maxi cooter shortly.%0D%0A &sbutton=Submit recipient=jjthomas38g@msn.com&subject=Member of email list.&realname=James J T mas&essay area=%28please edit as appropriate%29 %0D%0AI own a _______________ __ scooter%2C which I bought from _____________________ and I would%2Fwould n recommend it.%0D%0A &sbutton=Submit recipient=rollkay@gmail.com&subject=Member of email list.&realname=Khairul&ess area=%28please edit as appropriate%29 %0D%0AI own a _NAZA GTR 150S %28CPI GT 29_ scooter%2C which I bought from _NAZA Bike Sdn Bhd____________________ and would recommend it.%0D%0A &sbutton=Submit recipient=adrianog@shaw.ca&subject=Member of email list.&realname=adriano gent i&essay area=%28please edit as appropriate%29 %0D%0AI own a __vespa_it is ver good________________ scooter%2C which I bought from _a dealerb but too expesiv %2C i would like to become a dealer %2C for your factory_in western canada%2C st regards %2C adriano gentili__________________ and I .%0D%0A &sbutton=Subm recipient=twistedvincent%40yahoo.com&subject=Member of email list.&realname=Ma Vincent&essay area=%28please edit as appropriate%29 %0D%0AI own a PGO scoote 2C which I bought from a dealer that%27s now out of business%2Cand I would rec mend it if not for the sheer impossibility of getting it repaired.%0D%0A &sbu on=Submit recipient=kurereyo@cox.net&subject=Member of email list.&realname=kuri&essay a a=%28please edit as appropriate%29 %0D%0AI own a 250 Kymco People scooter%2C ich I bought from Scootershop in Orange%2C Ca and I would recommend it.%0D%0A sbutton=Submit recipient=dean_smith%40econvene.com&subject=Member of email list.&realname=Dea Smith&essay area=%28please edit as appropriate%29 %0D%0AI own a _____________ ____ scooter%2C which I bought from _____________________ and I would%2Fwould ot recommend it.%0D%0A &sbutton=Submit recipient=zman2121%40msn.com&subject=Member of email list.&realname=Russ Lawre e&essay area=%28please edit as appropriate%29 %0D%0AI own a AZ QT-6 scooter%2 which I bought from _AZ Imports and I would recommend it. It has the 139QMB gine...%0D%0A &sbutton=Submit recipient=demeyers@frontiernet.net&subject=Member of email list.&realname=Dan& say area=%28please edit as appropriate%29 %0D%0AI own a ___________________ s oter%2C which I bought from _____________________ and I would%2Fwould not rec mend it.%0D%0A &sbutton=Submit recipient=jdobrien@milwpc.com&subject=Member of email list.&realname=Del O%27B en&essay area=%28please edit as appropriate%29 %0D%0AI am interested in the T k 150 cc touring ___________________ scooter%2C which I bought from __________ _________ and I would%2Fwould not recommend it.%0D%0A &sbutton=Submit recipient=MarTalley101@verizon.net&subject=Member of email list.&realname=Mart &essay area=%28please edit as appropriate%29 %0D%0AI own a Roketa Bali 150cc uring scooter%2C which I bought from Family Motor Sports of Pittsurgh and I wo d recommend it%2C however finding a repair or service facility is hard to find 0D%0A &sbutton=Submit recipient=luigiforgione@gmail.com&subject=Member of email list.&realname=luigi orgione&essay area=%28please edit as appropriate%29 %0D%0AI own a ___________ ______ scooter%2C which I bought from _____________________ and I would%2Fwou not recommend it.%0D%0A &sbutton=Submit recipient=lw.sitter%40verizon.net&subject=Member of email list.&realname=Larry itter&essay area=%28please edit as appropriate%29 %0D%0AI own a _______Tank__ ________ scooter%2C which I bought from _____________________ and I would%2Fw ld not recommend it.%0D%0A &sbutton=Submit recipient=Vjameslanza@comcast.net&subject=Member of email list.&realname=Jim&e ay area=%28please edit as appropriate%29 %0D%0AI own a Tank Touring 150DE sco er%2C which I bought from Scooter Demand and I would recommend the Tank%2C lo of bang for the buck. &sbutton=Submit recipient=jay.burns@cox.net&subject=Member of email list.&realname=Jay Burns&e ay area=%28please edit as appropriate%29 %0D%0AI own a ___________________ sc ter%2C which I bought from _____________________ and I would%2Fwould not reco end it.%0D%0A Haven%27t bought one yet%2C but because of limited mobility %28 n%27t walk far%29 I%27m looking for alternative to an electric wheel chair. A 9cc machine looks to me to be a good %22learning machine%22. Eventually I%27d ike a 250cc freeway capable machine. %0D%0A%0D%0Athe 73 year old undercover S ta.%0D%0A%0D%0A%0D%0A&sbutton=Submit recipient=young1313@hotmail.com&subject=Member of email list.&realname=Dirk&es y area=%28please edit as appropriate%29 %0D%0AI own a ___________________ sco er%2C which I bought from _____________________ and I would%2Fwould not recom nd it.%0D%0A &sbutton=Submit recipient=hackmo%40comcast.net&subject=Member of email list.&realname=David Ha er&essay area=%28please edit as appropriate%29 %0D%0AI own a TANK 250 DE Tour g__________________ scooter%2C which I bought from _The Scooter Factory_______ _________ and I -would recommend it.%0D%0A &sbutton=Submit recipient=mmetty@hotmail.com&subject=Member of email list.&realname=Mike Metty ssay area=%28please edit as appropriate%29 %0D%0AI am considering a scooter f urban use. Perhaps a Tank%3F Dont want to do%0D%0Arepairs. At 65 I will us it instead of a car.&sbutton=Submit recipient=pplyr10@yahoo.com&subject=Member of email list.&realname=jim tisher& say area=%28please edit as appropriate%29 %0D%0AI own a _do not own but am co idering buying a tank 150 touring__________________ scooter%2C which I bought om _____________________ and I would%2Fwould not recommend it.%0D%0A &sbutto Submit recipient=RC4AandR@aol.com&subject=Member of email list.&realname=Richard Ulri &essay area=I do not own a scooter but I am looking for a good around town and etween cities scooter with lots of cargo capacity. All recomendations and inf will be considered.&sbutton=Submit recipient=cameron@linkbuilders123.com&subject=Member of email list.&realname=C eron Celles&essay area=Dear Sir %2F Madam%2C%0D%0A%0D%0AMy name is Cameron Cel s%2C and I am doing a Link Marketing Campaign for the site http%3A%2F%2Fwww.m ilitycare.com %28Google Page Rank - 3%29. As we are interested in exchanging l ks with your site%2C we feel that your site provides excellent complementary c tent to our site and that a link exchange would be mutually beneficial to both f us.%0D%0A%0D%0AIn fact%2C we have gone ahead and placed your link here %3A tp%3A%2F%2Fwww.mobilitycare.com%2Fcommerce%2Frelevantsites2.php %28Google Page ank - 2%29 and would appreciate a reciprocal link to our site.%0D%0A---------- ---------------------------------------------------------------------%0D%0ATit %3A Motor Scooters%3A Bibliography%0D%0AURL %3A http% %2F%2Fabacus-es.net%0D%0ADescription %3A Other Scooter Links. Electric Scoote - Gas Scooters - Parts Resources url%3A ... Reciprocal Links Program - A free ink exchange program with all the features.%0D%0A----------------------------- --------------------------------------------------%0D%0APlease let me know if u could not locate your link on the above mentioned page or if you would like modify it.%0D%0AIn order to link back to us you could use the following infor tion %3A%0D%0A%0D%0ATitle %3A Mobility Care%3A 3 Wheel Scooter %7C Wheel Scooter %7C Medical Lift Chair Transport%0D%0AURL %3A http% %2F%2Fwww.mobilitycare.com%0D%0ADescription %3A Mobility Care offers a wide v iety of mobility products like 3 Wheel Mobility Scooter%2C 4 Wheel Travel Scoo r%2C Electric Mobility Scooter%2C Medical Lift Chair%2C Pride Electric Scooter and Wheel Chair Transport.%0D%0A%0D%0AOR You could use the following link code 3A%0D%0A%0D%0A%3C--------- Copy here ----------%3E%0D%0A%3Ca href%3D%22http%3 2F%2Fwww.mobilitycare.com%22 title%3D%22Pride Electric Mobility Scooter%22%3EM ility Care%3A 3 Wheel Scooter %7C 4 Wheel Scooter %7C Medical Lift Chair Trans rt%3C%2Fa%3E%3Cbr%3EMobility Care offers a wide variety of mobility products l e 3 Wheel Mobility Scooter%2C 4 Wheel Travel Scooter%2C Electric Mobility Scoo r%2C Medical Lift Chair%2C Pride Electric Scooters and Wheel Chair Transport.% br%3E%3Cbr%3E%0D%0A%3C--------- End here ----------%3E%0D%0A%0D% Since I am a newbie can someone type the script out using vi and paste it to their reply. If no one can type it out then that is fine, but any help would be greatly appreciated. |
I see three different formats of the recipient address. However, they all have one thing in common: the recipient address is between 'recipient=' and '& subject'.
So, grep the file looking for 'recipient=' and extract the part between 'recipient=' and '& subject' to get the email address, then extract the part between 'realname=' and '& essay' to get the real name. |
PLEASE don't post long files like this--the info we need is contained in just a few lines.
Is the file really this ugly--with all the funny characters? Also, there are places where some data seems to be missing. Take this line as an example: Quote:
recipient=rso623s@aol.com realname=Scott Orcutt The problem in using simple tools is that there don't seem to be line breaks in consistent places. If these two things were always on the same line, you could just use "grep recipient filename". In this case, I can't tell what the output would be. The first thing I would do is simply run some tests on PART of the file to see what tools give you consistent results. |
Quote:
|
I know everyone is very busy, but I would really appreciate it if someone who has some spare time can make this script for me and paste it to their reply. If no one has any spare time than that is fine. I just need it by tomorrow, but I can try to do it myself if no one has any time. But any help would be greatly appreciated I would be in debt to the person who made this script for me.
Sincerely, Polanski |
Aren't you going to even attempt to make something yourself?
|
I would try to do it myself but I do not have the time. If I had the time I would do it but I am at work right now and do not have the time to do the research.
|
Quote:
Frankly, coming here and saying "please do this because I don't have time" is not making a good impression. Telling us WHY you need it tomorrow might help. How about addressing my main questions--is the file really that messy (all the extra characters and no line breaks) and is it true that some data got deleted when you did the cut and paste? |
:-) if you do not have a time do not it then...!!
|
It seems like the data you posted has some missing & characters, causing some of the field to get mixed up. I hope this is just a problem caused when you copied to the data to the thread (else you have a bug in our form code).
This program, when run on the input file will generate a list of email and real names. You should be able to work out how to extend it if you want to extract other fields: Code:
#!/usr/bin/perl Code:
chmod 755 my_extract Code:
./my_extract /path/to/logfile |
I need it by tomorrow because one of my friends threatened to take it off if I did not finish the script by tommorrow and he is not a very kind person because he does not like it when I use his computer to save some of my files. Right now my computer is down and he does not take calls unless it is really important. Also, the answer is yes to the copy and paste issue, the file was too long so I had to delete some of it and yes the file is that messy.
|
I am using the computer at work right now.
|
I can only use the computer at work for the internet, they will not allow me to save any files on it because other people use it.
|
All times are GMT -5. The time now is 10:49 PM. |