i am not sure, if i understand you correctly, but if you
try to delete everything from "[Header 1]" to "[Header 2]" not
including "[Header 2]", this will do it:
Hi
I am running a script (which compares two directory contents) for which I am getting an output of 70 pages in which few pages are blank so I was able to delete those blank lines.
But I also want to delete the headers present for each page. can any one help me by providing the code... (1 Reply)
I have a data file with over 500,000 records/lines that has the header throughout the file.
SEQ_ID Name Start_Date Ins_date Add1 Add2
1 Harris 04/02/08 03/02/08 333 Main Suite 101
2 Smith 02/03/08 01/23/08 287 Jenkins
SEQ_ID Name ... (3 Replies)
Hello,
So i want to send mails in any way from a solaris 5.8 system, perhaps using mailx or sendmail. My purpose is to stay clear of systems name in head data. So i want to strip at least the "Message-Id" and the "Recieved" headers of the mail. Yet this seems to be a bit of a problem.
Now i... (2 Replies)
Hi ,
I have a typical situation. I have 4 files and with different headers (number of headers is varible ).
I need to make such a merged file which will have headers combined from all files (comman coluns should appear once only).
For example -
File 1
H1|H2|H3|H4
11|12|13|14
21|22|23|23... (1 Reply)
Hi there,
I have two questions. First, I was wondering how to use sed to remove two header lines or two tail lines. Here I just do the same operation twice...I'm sure there is a better way. Second, and more importantly, is there a better way to have these operations use files other than... (5 Replies)
Heya there,
A small selection of my data is shown below.
DATE TIME FRAC_DAYS_SINCE_JAN1
2011-06-25 08:03:20.000 175.33564815
2011-06-25 08:03:25.000 175.33570602
2011-06-25 ... (4 Replies)
Hi,
I have catenated multiple output files (from a monte carlo run) into one big output file. Each individual file has it's own two line header. So when I catenate, there are multiple two line headers (of the same wording) within the big file. How do I use the sed command to search for the... (1 Reply)
Good evening
Im new at unix shell scripting and im planning to script a shell that removes headers for about 120 files in a directory and each file contains about 200000
lines in average.
i know i will loop files to process each one and ive found in this great forum different solutions... (5 Replies)
Good evening
I need your help please, im new at Unix and i wanted to remove the first 5 headers for 100000 records files and then create a control file .ctl that contains the number of records and all seem to work out but when i tested at production it didnt wotk.
Here is the code:
#!... (6 Replies)
I have a file called "dsout" with empty rows and duplicate headers.
DATE TIME TOTAL_GB USED_GB %USED
--------- -------- ---------- ---------- ----------
03/05/013 12:34 PM 3151.24316 2331.56653 73.988785 ... (3 Replies)
Discussion started by: Daniel Gate
3 Replies
LEARN ABOUT DEBIAN
astro::fits::header::ast
Astro::FITS::Header::AST(3pm) User Contributed Perl Documentation Astro::FITS::Header::AST(3pm)NAME
Astro::FITS::Header::AST - Manipulates FITS headers from an AST object
SYNOPSIS
use Astro::FITS::Header::AST;
$header = new Astro::FITS::Header::AST( FrameSet => $wcsinfo );
$header = new Astro::FITS::Header::AST( FrameSet => $wcsinfo,
Encoding => 'FITS-IRAF' );
$header = new Astro::FITS::Header::AST( Cards => @cards );
DESCRIPTION
This module makes use of the Starlink::AST module to read the FITS HDU from an AST FrameSet object.
It stores information about a FITS header block in an object. Takes an hash as an argument, with an array reference pointing to an
Starlink::AST FramSet object.
REVISION
$Id$
METHODS
configure
Reads a FITS header from a Starlink::AST FrameSet object
$header->configure( FrameSet => $wcsinfo );
Base class initialisation also works:
$header->configure( Cards => @cards );
Accepts a reference to an Starlink::AST FrameSet object.
If a specific encoding is required, this can be specified using the Encoding argument. Default is FITS-WCS if no Encoding is given.
Note that not all framesets can be encoded using FITS-WCS.
$header->configure( FrameSet => $wcsinfo, Encoding => "Native" );
If Encoding is specified but undefined, the default will be decided by AST.
SEE ALSO
"Starlink::AST", "Astro::FITS::Header"
AUTHORS
Alasdair Allan <aa@astro.ex.ac.uk>, Tim Jenness <t.jenness@jach.hawaii.edu>
COPYRIGHT
Copyright (C) 2007-2011 Science and Technology Facilities Council. Copyright (C) 2001-2005 Particle Physics and Astronomy Research
Council. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place,Suite 330, Boston, MA 02111-1307, USA
perl v5.14.2 2012-06-30 Astro::FITS::Header::AST(3pm)