I am planning to automate multiple files through Unix script.
Could you please guide for making the automation for multiple files ?
Eg.
I have to check header and footer for all files in the particular path and the header pattern should match with the filename.
Also,I have to check header,trailer,file and header filename match,count check in trailer section,Total column check and not null check to automate the things.
Hi everyone,
I am new to Unix programming. My inquries is:-
a) How to add a Header and Trailer in the set of data
b) Include a number count of the data in the trailer
The set of data only contained the information of 'Customer's Name' and 'Account Number'. I would like to add the Header... (2 Replies)
Hi All,
I am karthik. I am new to this forum. I have one requirement.
I have a file with header and footer.
Header may be like
HDR0001
or
FILE20090110
(Assume it is unknown so far, but i am sure there is a header in the file)
likewise file has the trailer too.
I just... (7 Replies)
i have .DAT file FILE1.DAT
1200910270040625
2123456789 J123456 ABC
2123456789 K123456 ABC
2222222222 L123456 DEF
2333333333 M12345 GHI
30000004
My outfile FILE2.TXT should have like this, I need the header value as ie (1200910270040625 ) body rows remove the duplicate rows and the... (2 Replies)
How can we a shell script and pass date parameters .I have 3 files comming from Datastage with |" delimited
I need append 3 files as above: File1:
P0000|"47416954|"AU|"000|"INS|"0000|"|"20060601|"99991231|"|"|"|"|"01
File 2:... (2 Replies)
Hi,
I want to add the below Header to all the files in sequence File1,File2,File3...etc
"ABC,<number of chracter in the file>"
e,g - If File1 is as below
pqrstuvdt
abcdefgh
then I want to add the above header into it ,So that File1 becomes as below
ABC,17
pqrstuvdt
abcdefgh
... (9 Replies)
for example, i have a file with below content:
123413
866688
816866
818818
i want the output as:
This is header
123413
866688
816866
818818
This is trailer
i am able to achieve it using a bash script. (2 Replies)
Hi,
I need a script that validates a file header/detail/trailer. File layout is:
Header - Rec_Type|File_name|File_Date
Detail - Rec_Type|field1|field2|field3...
Trailder - Rec_Type|File_name|File_Date|Record_count
Sample Data:
HDR|customer_data.dat|20120709... (7 Replies)
I have a EBCDIC multi layout file which has a header record which is 21 bytes, The Detail records are 2427 bytes long and the trailer record is 9 bytes long.
Is there a command to remove the header as well as trailer record and read only the detail records while at the same time not altering... (1 Reply)
Hi ,
My UNIX system is SUN Solaris.
I am trying to do a simple thing as described below.
I have a PIPE delimited file that has header and trailer. So the file is something like below:
Test1.txt looks like something below:
field_data1|field_data2|and some more data --Header
... (5 Replies)
Discussion started by: Saanvi1
5 Replies
LEARN ABOUT DEBIAN
yaz-asncomp
YAZ-ASNCOMP(1) Commands YAZ-ASNCOMP(1)NAME
yaz-asncomp - YAZ ASN.1 compiler
SYNOPSIS
yaz-asncomp [-v] [-c cfile] [-h hfile] [-p pfile] [-d config] [-I includeout] [-i includedir] [-m module] [filename]
DESCRIPTION
yaz-asncomp is an ASN.1 compiler that reads an ASN.1 specification in filename and produces C/C++ definitions and BER encoders/decoders for
it.
The produced C/C++ code and header files uses the ODR module of YAZ which is a library that encodes/decodes/prints BER packages.
yaz-asncomp allows you to specify name of resulting source via options. Alternatively, you can specify a DEFINISIONS file, which provides
customized output to many output files - if the ASN.1 specification file consists of many modules.
This utility is written in Tcl. Any version of Tcl should work.
OPTIONS -v
Makes the ASN.1 compiler print more verbose about the various stages of operations.
-c cfile
Specifies the name of the C/C++ file with encoders/decoders.
-h hfile
Specifies the name of header file with definitions.
-p pfile
Specifies the name of the a private header file with definitions. By default all definitions are put in header file (option -h).
-d dfile
Specifies the name of a definitions file.
-I iout
Specifies first part of directory in which header files are written.
-i idir
Specifies second part of directory in which header files are written.
-m module
Specifies that ASN.1 compiler should only process the module given. If this option is not specified, all modules in the ASN.1 file are
processed.
DEFINITIONS FILE
The definitions file is really a Tcl script but follows traditional rules for Shell like configuration files. That is # denotes the
beginning of a comment. Definitions are line oriented. The definitions files usually consists of a series of variable assignments of the
form:
set name value
Available variables are:
default-prefix
Sets prefix for names in the produced output. The value consists of three tokens: C function prefix, C typedef prefix and preprocessor
prefix respectively.
prefix(module)
This value sets prefix values for module module. The value has same form as default-prefix.
filename(module)
Specifies filename for C/header file for module module.
init(module,h)
Code fragment to be put in first part of public header for module module.
body(module,h)
Code fragment to be put in last part of public header for module module (trailer).
init(module,c)
Code fragment to be put in first part of C based encoder/decoder for module module.
body(module,c)
Code fragment to be put in last part of C based encoder/decoder for module module (trailer).
map(module,name)
Maps ASN.1 type in module module of name to value.
membermap(module,name,member)
Maps member member in SEQUENCE/CHOICE of name in module module to value. The value consists of one or two tokens. First token is name
of C preprocessor part. Second token is resulting C member name. If second token is omitted the value (one token) is both preprocessor
part and C struct,union.
unionmap(module,name,member)
Maps member member in CHOICE of name in module module to value. Value consists of to or three tokens. The first token is name of the
integer in the union that is used as selector for the union itself. The second token is name of the union. The third token overrides
the name of the CHOICE member; if omitted the member name is used.
FILES
/usr/share/yaz/z39.50/z.tcl
/usr/share/yaz/z39.50/*.asn
SEE ALSO yaz(7)
Section "The ODR Module" in the YAZ manual.
YAZ 4.2.30 04/16/2012 YAZ-ASNCOMP(1)