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 SUSE
distrib.pats
DISTRIB.PATS(5) InterNetNews Documentation DISTRIB.PATS(5)NAME
distrib.pats - Default values for the Distribution: header
DESCRIPTION
The file pathetc/distrib.pats is used by nnrpd to determine the default value of the Distribution: header. Blank lines and lines beginning
with a number sign ("#") are ignored. All other lines consist of three fields separated by a colon:
<weight>:<pattern>:<value>
The first field is the weight to assign to this match. If a newsgroup matches multiple lines, the line with the highest weight is used.
This should be an arbitrary integer greater than zero. The order of lines in the file is only important if groups have equal weight (in
which case, the first matching line will be used).
The second field is either the name of a newsgroup or a uwildmat(3)-style pattern to specify a set of newsgroups.
The third field is the value that should be used for the Distribution: header of a posted article, if this line was picked as the best
match and no Distribution: header was supplied by the user. It can be an empty string, specifying that no Distribution: header should be
added. If it is not empty, it is better to only use US-ASCII characters for that field; otherwise, make sure it is encoded in UTF-8.
When a post is received by nnrpd that does not already contain a Distribution: header, each newsgroup to which an article is posted will be
checked against this file in turn, and the matching line with the highest weight will be used as the value of the Distribution: header. If
no lines match, or if the matching line has an empty string for its third field, no header will be added. In case a distribution is added
by nnrpd, make sure it is not rejected by the newsfeeds "ME" entry.
A list of recommended distributions can be specified and described in distributions(5).
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Converted to POD by Russ Allbery <rra@stanford.edu>.
$Id: distrib.pats.pod 8803 2009-11-15 09:29:41Z iulius $
SEE ALSO distributions(5), inn.conf(5), newsfeeds(5), nnrpd(8), uwildmat(3).
INN 2.5.2 2009-11-15 DISTRIB.PATS(5)