Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Shell scripts and perl

by Corion (Patriarch)
on Sep 10, 2007 at 13:40 UTC ( [id://638067]=note: print w/replies, xml ) Need Help??


in reply to Shell scripts and perl

Are this and "write once, run anywhere" homework questions?

Anyway. A shell script is better suited to the task than a Perl script for example if the whole process is just a single pipe in which the data flows. The following shell script is what I consider borderline:

#!/usr/bin/ksh ZR=$1 ./dump_abrechnungssatz.pl --delimiter ";" --columns COL1,COL2,COL5 ../ +INPUT/FOO/X06*$ZR*[0-9].gz \ | grep -v ";[+]0000000000000,000000" \ | grep -v ";1;" \ | cut -d ";" -f 1,2,3 \ | sort -u \ >../OUTPUT/FOO_bn_kst_$ZR.csv

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://638067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found