![]() |
|
|
google unix.com
|
|||||||
| Forums | Registreer | Forum Regels | Links | Albums | Veelgestelde vragen | Ledenlijst | Kalender | Zoeken | Today's Posts | Markeer forums als gelezen |
| UNIX voor Dummies Questions & Answers Als u niet zeker weet waar je een Unix-of Linux vraag, post het hier. Alle UNIX-en Linux beginners van harte welkom!! |
Meer UNIX en Linux Forum Onderwerpen Misschien vindt u Helpful
|
||||
| Draad | Thread Starter | Forum | Antwoorden | Last Post |
| me helpen met het versturen van parameters uit sqlplus script Unix shell script | Hara | Programmeren en Shell Scripting | 2 | 01-29-2008 03:31 PM |
| Shell Script: wilt invoegen waarden in de database als update script | ring | Programmeren en Shell Scripting | 1 | 10-25-2007 04:06 |
| here-document te automatiseren perl script dat gesprek script | hogger84 | Programmeren en Shell Scripting | 3 | 10-22-2007 11:15 |
| terugkeer naar de ouder reservoir na het inroepen van een script in een script | gurukottur | Programmeren en Shell Scripting | 5 | 09-26-2006 08:05 |
| terugkeer valuse van kind tot ouder script script | borncrazy | Programmeren en Shell Scripting | 1 | 08-20-2004 04:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Zoeken in deze Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Script helpen
Ik loop dit script en het verslag houdt een telling van 6 minder dan wat wordt handmatig bedroeg. Hoe kan ik het script -6 of geven een nauwkeurige telling van wat het nummer is als handmatig toegevoegd?
$ Conman sj HCSCPROD#@.> $ myhome / hcscprod_job_totals $ Conman sj HCNCPROD#@.> $ myhome / hcncprod_job_totals $ Conman sj KTAZP#@.> $ myhome / ktazp_job_totals $ Conman sj KTAZD#@.> $ myhome / ktazd_job_totals $ Conman sj KTAZI#@.> $ myhome / ktazi_job_totals $ Conman sj KTAZQ#@.> $ myhome / ktazq_job_totals cat $ myhome / hcscprod_job_totals | wc-l> no_file cat $ myhome / hcncprod_job_totals | wc-l>> no_file cat $ myhome / ktazp_job_totals | wc-l>> no_file cat $ myhome / ktazd_job_totals | wc-l>> no_file cat $ myhome / ktazi_job_totals | wc-l>> no_file cat $ myhome / ktazq_job_totals | wc-l>> no_file print "hcscprod_job_totals">> $ myhome / hcscprod_job_totals | meer $ myhome / hcscp rod_job_totals | wc-l "hcscprod_job_totals" print "hcncprod_job_totals">> $ myhome / hcncprod_job_totals | meer $ myhome / hcncp rod_job_totals | wc-l "hcncprod_job_totals" print "ktazp_job_totals">> $ myhome / ktazp_job_totals | meer $ myhome / ktazp_job_tot als | wc-l "ktazp_job_totals" print "ktazd_job_totals">> $ myhome / ktazd_job_totals | meer $ myhome / ktazd_job_to tals | wc-l "ktazd_job_totals" print "ktazi_job_totals">> $ myhome / ktazi_job_totals | meer $ myhome / ktazi_job_to tals | wc-l "ktazi_job_totals" print "ktazq_job_totals">> $ myhome / ktazq_job_totals | meer $ myhome / ktazq_job_to tals | wc-l "ktazq_job_totals" awk '(for (i \u003d 1; i <\u003d NF; i + +) s \u003d s + $ i); END (print s)' no_file 3240 hcscprod_job_totals 1781 hcncprod_job_totals 5421 ktazp_job_totals 4792 ktazd_job_totals 1367 ktazi_job_totals 28 ktazq_job_totals 16623 ![]() |
![]() |
| Bladwijzers |
| Thread Tools | Zoeken in deze Thread |
| Display Modes | Beoordeel deze draad |
|
|