Hi I have below requirements on the script below :
(1) I receive 2 pipe seperated file called OUT.psv and DIFF.psv with a column header.I concatenate the 2 files and create a final.psv file. I want to add another header as START_FILE to the final.psv file . How to achieve this ?
(2) I have added 3 footers using echo in the script successfully.
(3)Next day i run the script again which needs to first strip the first header which is START_FILE and last 3 headers and do the concatenate of a OUT and DIFF file and then sort . How to remove the first header and last 3 headers and the continue with my usual script to concatenate and sort ?
Output:
-------
Last edited by Scrutinizer; 06-14-2013 at 08:26 PM..
Reason: code tags also for data samples
I would like to remove some lines from begining of file (header) and some lines from end of file (footer).
The header/footer lines generated by web-browser when the user upload a file to my webserver.
Example:
-----------------------------7d62af20c052c
Content-Disposition: form-data;... (2 Replies)
Hi Gurus,
My requirement is, I am passing a file1.dat into this(rowcnt.sh) script,but returning a wrong value of -2.(it should be 4).Becoz my file1.dat contains 6records incl: Header & Footer.(6-2=4)
wrong output:
-------
#sh rowcnt.sh file1.dat
-2 actual_cnt except HDR & FTR
should be:... (3 Replies)
Hi All,
I have several txt files i need to enter specific header and footer (both are separate) to all these files how can i do this? plz help..
Regards,
Raghav (4 Replies)
Hi, Guys,
I want add header and footer in a file. I can add footer using following command:
echo "Footer" >>file.
I don't know how to add header.
Thanks in advance (4 Replies)
Hi,
I need to check whether the incoming file has a header and footer using a UNIX script. The pattern of the header and footer is fixed as follows:
Header: Name,Date
Footer: Count, Total
Name,Date
-------------------------
-------------------------
-------------------------
Count,... (5 Replies)
I want to delete the header and footer in the file by using sed for that i ran the below script and my text file looks like
emp.txt
# This file contain employee
# information
abc 12300 34 'FGH'
# This is confidential as per the firm rules.
my intention is to remove the header... (8 Replies)
Hi All,
I need to write a script that In my file I have to check header and footer records are available or not. If it is available I have to run the script, otherwise I should not. But current script it is checking only the data inside the script. It is avoiding to check Header and Footer... (1 Reply)
I have two files which are getting sent to a UNIX server in order to be bcp'd into a database. The bcp is failing because there's a header and footer row on the file which give the date of the file and the number of rows in it. That's because the file is also being used for another process, so we... (1 Reply)
This is my file(Target.txt)
name|age|locaction
abc|23|del
xyz|24|mum
jkl|25|kol
The file should be like this
1|03252012
1|name|age|location
2|abc|23|del
2|xyz|24|mum
2|jkl|25|kol
2|kkk|26|hyd
3|4
Column 1 is row indicator
for row 1 and 2, column indicator is 1,for data rows... (1 Reply)
it still display header and footer
header
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 24 13:41:51 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Real... (0 Replies)
Discussion started by: ment0smintz
0 Replies
LEARN ABOUT DEBIAN
hobbitweb
HOBBITWEB(5) File Formats Manual HOBBITWEB(5)NAME
Xymon web page headers, footers and forms.
DESCRIPTION
The Xymon webpages are somewhat customizable, by modifying the header- and footer-templates found in the ~xymon/server/web/ directory.
There are usually two or more files for a webpage: A template_header file which is the header for this webpage, and a template_footer file
which is the footer. Webpages where entry forms are used have a template_form file which is the data-entry form.
With the exception of the bulletin files, the header files are inserted into the HTML code at the very beginning and the footer files are
inserted at the bottom.
The following templates are available:
bulletin
A bulletin_header and bulletin_footer is not shipped with Xymon, but if they exist then the content of these files will be inserted
in all HTML documents generated by Xymon. The "bulletin_header" contents will appear after the normal header for the webpage, and
the "bulletin_footer" will appear just before the normal footer for the webpage. These files can be used to post important informa-
tion about the Xymon system, e.g. to notify users of current operational or monitoring problems.
acknowledge
Header, footer and form template for the Xymon acknowledge alert webpage generated by bb-ack.cgi(1)
bb Header and footer for the Xymon Main view webpages, generated by bbgen(1)
bb2 Header and footer for the Xymon All non-green view webpage, generated by bbgen(1)
bbnk Header and footer for the now deprecated BBNK webpage, generated by bbgen. You should use the newer hobbit-nkview.cgi(1) utility
instead, which uses the hobbitnk templates.
bbrep Header and footer for the Xymon Main view availability report webpages, generated by bbgen(1) when running in availability report
mode.
bbsnap Header and footer for the Xymon Main view snapshot webpages, generated by bbgen(1) when running in snapshot report mode.
bbsnap2
Header and footer for the Xymon All non-green view snapshot webpage, generated by bbgen(1) when running in snapshot report mode.
columndoc
Header and footer for the Xymon Column documentation webpages, generated by the bb-csvinfo.cgi(1) utility in the default Xymon con-
figuration.
confreport
Header and footer for the Xymon Configuration report webpage, generated by the hobbit-confreport.cgi(1) utility. Note that there are
also "confreport_front" and "confreport_back" templates, these are inserted into the generated report before the hostlist, and
before the column documentation, respectively.
event Header, footer and form for the Xymon Eventlog report, generated by hobbit-eventlog.cgi(1)
findhost
Header, footer and form for the Xymon Find host webpage, generated by bb-findhost.cgi(1)
graphs Header and footer for the Xymon Graph details webpages, generated by hobbitgraph.cgi(1)
hist Header and footer for the Xymon History webpage, generated by bb-hist.cgi(1)
histlog
Header and footer for the Xymon Historical status-log webpage, generated by hobbitsvc.cgi(1) utility when used to show a historical
(non-current) status log.
hobbitnk
Header and footer for the Xymon Critical Systems view webpage, generated by hobbit-nkview.cgi(1)
hostsvc
Header and footer for the Xymon Status-log webpage, generated by hobbitsvc.cgi(1) utility when used to show a current status log.
info Header and footer for the Xymon Info column webpage, generated by hobbitsvc.cgi(1) utility when used to show the host configuration
page.
maintact
Header and footer for the Xymon webpage, generated by hobbit-enadis.cgi(1) utility when using the Enable/Disable "preview" mode.
maint Header, footer and form for the Xymon Enable/disable webpage, generated by hobbit-enadis.cgi(1)
nkack Form show on the status-log webpage when viewed from the "Critical Systems" overview. This form is used to acknowledge a critical
status by the operators monitoring the Critical Systems view.
nkedit Header, footer and form for the Critical Systems Editor, the hobbit-nkedit.cgi(1) utility.
replog Header and footer for the Xymon Report status-log webpage, generated by hobbitsvc.cgi(1) utility when used to show a status log for
an availability report.
report Header, footer and forms for selecting a pre-generated Availability Report. Handled by the bb-datepage.cgi(1) utility.
snapshot
Header and footer for the Xymon Snapshot report selection webpage, generated by bb-snapshot.cgi(1)SEE ALSO bbgen(1), hobbitsvc.cgi(1), xymon(7)Xymon Version 4.2.3: 4 Feb 2009 HOBBITWEB(5)