text_combined: david c rankin vhdicqcdjjosuddenlinkmailcom anders johansson wrote thursday 14 february 2008 054123 david c rankin wrote listmates run bash problem simple loop dont understand would like input gurus determine tldp documentation error safe money says situation using example 9122 following link construct simple loop extract directory full zip files httptldporgldpbashbeginnersguidehtmlsect_09_01html example give nezyqoctarine html cat html2phpsh binbash specific conversion script html files php listls html list newnamels sed e shtmlphp cat beginfile newname cat sed e 125d tac sed e 121d tac newname cat endfile newname done actually tutorial wow newnameihtmlphp echo beginfile newname sed e 125d created following binbash listls zip list unzip mntnemesiscfghomesambacomputersoftwarefontsextract echo unzipped extract done exit 0 zip unzip mntnemesiscfghomesambacomputersoftwarefontsextract done want quotes around guard spaces file names anders anders found quotes around work managing filenames spaces filenames spaces pulled listls zip quoted unquoted makes difference next element list example goodfile 001jpg exists list goodfile 001jpg list echo 1 done gives goodfile 001jpg regardless stumbling around seems include afsn keep loop breaking spaces specifying break newlines spaces filenames spaces wifes digital pictures thing found work without extensive character replacing spaces _ afsn list telling loop break spaces afs seems work like charm better ways echo 1 done david c rankin jd pe rankin law firm pllc 510 ochiltree street nacogdoches texas 75961 telephone 936 7159333 facsimile 936 7159339 wwwrankinlawfirmcom lcvbdkstonehengecom sat apr 26 154932 2008 chas owens cc soiofdvxgperlorg rodrick brown subject variable help lcvbdkstonehengecom randal l schwartz date tue 04 mar 2008 135108 0800 messageid 86r6eqqhtffsfbluestonehengecom mimeversion 10 contenttype textplain charsetusascii chas chas owens writes chas disagree sentiment bad answers offer chas chance teach one person time people chas afraid post answers list however good idea chas test answers posting ok least test thank randal l schwartz stonehenge consulting services inc 1 503 777 0095 perlunixsecurity consulting technical writing comedy etc etc see perltrainingstonehengecom onsite openenrollment perl training cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_98994ezm esiphiazkpppasportcom sat apr 26 154932 2008 subject variable help mimeversion 10 contenttype textplain charsetusascii contenttransferencoding quotedprintable date tue 4 mar 2008 215930 0000 messageid andrew curry true enough however please dont rude people free post answers think corrected learn scared know flippant replies correct return false positive x3d09 matter ultra simple solution simple question dont know person loading file etc even perldoc q whether scalar number states assuming dont care ieee notations like nan infinity probably want use regular expression print nondigitsn print whole numbern print integern print integern dd print real numbern ddd print decimal numbern 3dddddeed print c floatn yes use scalarutil people want simple test original message lcvbdkstonehengecom mailtolcvbdkstonehengecom20 sent 04 march 2008 2145 soiofdvxgperlorg subject variable help andrew 3d3d andrew curry writes andrew 100 sure also x 3dd andrew actual integer ie number positive whole set numbers andrew 123 negative whole numbers 123 020 also fails declaring 123n match thus integer false positive please check answers answering beginners next time 20 randal l schwartz stonehenge consulting services inc 1 503 777 0095 perlunixsecurity consulting technical writing comedy etc etc see perltrainingstonehengecom onsite openenrollment perl training 20 unsubscribe email piqgklqwxcmtsrlfpiqgperlorg additional commands email ccorkgnfllqzvperlorg httplearnperlorg email pa group information see wwwthepagroupcom email may contain confidential information 20 addressee permitted read copy distribute otherwise use email attachments 20 received error please contact sender immediately 20 opinion expressed email personal sender may reflect opinion pa group email reply address may subject interception monitoring operational reasons lawful business practices cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_98995ezm ahlgrwhsvgmailcom sat apr 26 154932 2008 messageid 58ce48dc0803041409l38d31622x4116198fa36386f4mailgmailcom date tue 4 mar 2008 170911 0500 chas owens randal l schwartz subject variable help cc soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit tue mar 4 2008 444 pm randal l schwartz wrote andrew andrew curry writes andrew 100 sure also x andrew actual integer ie number positive whole set numbers andrew 123 negative whole numbers 123 0 also fails declaring 123n match thus integer false positive please check answers answering beginners next time snip depends current definition integer integer original poster meant treated like integer perl 123n seen integer course case 123foo also integer would fail check false negative case important clear mean best way clear use regex like a09z pseudoregex like composed characters 0 9 one times chas owens wonkdennet important skill programmer ability read cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_98998ezm zuroequserssourceforgenet sat apr 26 154932 2008 messageid date tue 4 mar 2008 181418 0500 yitzle chas owens subject variable help cc randal l schwartz soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit andrew got good point perldoc page says print whole numbern would indicate author perldoc page believes 123n classify number 123foo shouldnt even though perl sometimes treats 123foo number going write think makes sense consider 123n number 123foo number suppose depend persons situation definition requirements guess makes perldoc page somewhat ambiguous cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_98999ezm hfcogqhuoisolutionnl sat apr 26 154932 2008 messageid 2008030423311123233qmaillistsdeveloopercom soiofdvxgperlorg drruud subject variable help date wed 5 mar 2008 002755 0100 mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit godqllmebetsystemscom schreef find specific variable contains integer value script variable storing value want find whether value string integer perl data types like scalar array hash operator types like numeric string perl wle x75e2 print x print 0x print 0x 75e2 750 750 affijn ruud gewoon een tijger cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_99000ezm kejhtdbhqaekyintergatecom sat apr 26 154933 2008 date tue 04 mar 2008 200635 0500 mk subject variable help soiofdvxgperlorg messageid 1204679195l2614l0lakashiraffeeenthusiasm mimeversion 10 contenttype textplain charsetusascii delspyes formatflowed contenttransferencoding quotedprintable 03042008 034144 pm yitzle wrote id use regex test see string made entirely integers print variable containing p intergern p 3d 09 yitzle would seem foolproof solution 20 problem would p3d1 would consider 1 integer incidentally amounts thing cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_99001ezm ahlgrwhsvgmailcom sat apr 26 154933 2008 messageid 58ce48dc0803041729o3e331fabj80762395e1896cfemailgmailcom date tue 4 mar 2008 202920 0500 chas owens mk subject variable help cc soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit tue mar 4 2008 806 pm mk wrote 03042008 034144 pm yitzle wrote id use regex test see string made entirely integers print variable containing p intergern p 09 yitzle would seem foolproof solution problem would p1 would consider 1 integer incidentally amounts thing snip nope due addition unicode support recent versions perl also match x1814 mongolian digit 4 character class 09 matches number characters including scripts want 0123456789 need say 09 perl le print x1814 adz f chas owens wonkdennet important skill programmer ability read cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_99002ezm zuroequserssourceforgenet sat apr 26 154933 2008 messageid date tue 4 mar 2008 222315 0500 yitzle chas owens subject variable help cc mk soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit tue mar 4 2008 829 pm chas owens wrote nope due addition unicode support recent versions perl also match x1814 mongolian digit 4 character class 09 matches number characters including scripts want 0123456789 need say 09 perl le print x1814 adz f chas owens interesting least would perl le print x1814 need make print properly cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_99003ezm ahlgrwhsvgmailcom sat apr 26 154933 2008 messageid 58ce48dc0803041935w64ebefc1rf5d1e180081714bcmailgmailcom date tue 4 mar 2008 223555 0500 chas owens yitzle subject variable help cc mk soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit tue mar 4 2008 1023 pm yitzle wrote tue mar 4 2008 829 pm chas owens wrote nope due addition unicode support recent versions perl also match x1814 mongolian digit 4 character class 09 matches number characters including scripts want 0123456789 need say 09 perl le print x1814 adz f chas owens interesting least would perl le print x1814 need make print properly terminal handle utf8 may need put profile fix utf8 support export lc_ctypeen_usutf8 vim needs swtich latin1 utf8 export perl_unicodesdl makes perl use utf8 io might also need right fonts try instead think circled digit one commonly supported perl le print x2460 chas owens wonkdennet important skill programmer ability read cennjmffhdndjplemlim contenttype messagerfc822 contentdisposition inline filenamebeginners_99004ezm zuroequserssourceforgenet sat apr 26 154933 2008 messageid date tue 4 mar 2008 231825 0500 yitzle chas owens subject variable help cc mk soiofdvxgperlorg mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit tue mar 4 2008 1035 pm chas owens wrote terminal handle utf8 may need put profile fix utf8 support export lc_ctypeen_usutf8 vim needs swtich latin1 utf8 export perl_unicodesdl makes perl use utf8 io might also need right fonts try instead think circled digit one commonly supported perl le print x2460 circled digit one worked without exports mongolian digit 4 gives square even exports interesting thanks tue 05 aug 2008 221852 0600 opensuse bash doesnt tldp bash beginners guide loop example work