I have this input file that I need to remove lines which represents more than 30 days of processing.
Input file:
On 11/17/2009 at 12:30:00, Program started processing...argc=7
Total number of bytes in file being processed is 390
Message buffer of length=390 was allocated successfully... (1 Reply)
All I want is to look for the pattern in the file...If I found it at # places... I want print lines after those pattern(line) until I find a blank line.
Log EXAMPLE :
MT:Exception caught
The following Numbers were affected:
1234
2345
2346
Error
java.lang.InternalError:... (3 Replies)
Hi,
Consider a file named "testfile"
The contents of file are as below
first line added for test
second line added for test
third line added for test
fourth line added for test
fifth line added for test (5 Replies)
Hi
Im trying to do the following in sed. I want to delete any blank line at the start of a file until it matches a pattern and then stops. for example:
Input
output:
I have got it to work within a range of two patterns with the following:
sed '/1/,/pattern/{/^]*$/d}'
The... (2 Replies)
I had a spot of trouble coming up with a title, hopefully you'll understand once you read my problem... :)
I have the output of an ldapsearch that looks like this:
dn: cn=sam,ou=company,o=com
uidNumber: 7174
gidNumber: 49563
homeDirectory: /home/sam
loginshell: /bin/bash
uid: sam... (2 Replies)
Hello,
I have some tab delimited files that may contain blank columns. I would like to delete the blank columns if they exist. There is no clear pattern for when a blank occurs.
I was thinking of using sed to replace instances of double tab with blank,
sed 's/\t\t//g'
All of the examples... (2 Replies)
Hi,
Test file x.txt below. This file is generated by a program that I unfortunately do not have control on how it gets presented/generated.
create PACKAGE "XXX_INTERFACE_DEFECT_RPT_TEST" is
TYPE refCursor IS REF CURSOR;
Function queryRecords (
p_status varchar2,
...
...
...
)... (4 Replies)
Hi,
I tried the following options but was unable to delete blank lines from file
Input file = temp.hash.txt
temp.hash.txt content
90
0
89.56
0
0
57575.4544
56.89 (9 Replies)
Hi all,
I'm looking for a way (sed or awk) to delete multiple lines between blank lines containing two patterns ex:
user: alpha
parameter_1 = 15
parameter_2 = 1
parameter_3 = 0
user: alpha
parameter_1 = 15
parameter_2 = 1
parameter_3 = 0
user: alpha
parameter_1 = 16... (3 Replies)
Discussion started by: ce9888
3 Replies
LEARN ABOUT DEBIAN
templates2ada
TEMPLATES2ADA(1) Templates Parser User's Guide TEMPLATES2ADA(1)NAME
templates2ada - generate Ada sources from a templates file
SYNOPSIS
templates2ada [options]
DESCRIPTION
templates2ada parses all the template files in a directory and then generates an output file from these, based on a template file (a
default example of which is provided as /usr/share/doc/libtemplates-parser-dev/examples/templates.tads). The latter contains in fact two
examples, depending on whether one Ada package should be generated per template, or whether a single package should be built. In the for-
mer case, if you are using the GNAT compiler, you should run `gnatchop' on the resulting file. Here is an example:
$ rm -f src/templates/*.ads
$ templates2ada -d resources/ -o src/templates/generated -r
$ cd src/templates; gnatchop -w -q generated
$ rm -f src/templates/generated
One of the goals of templates2ada is to ensure that you are only setting tags that actually exist in the template (and thus prevent, as
much as possibly, typos in the name of tags); also, when combined with other tools, to help ensure that all tags needed by the template are
properly set.
templates2ada also has special knowledge about HTTP constructs and will generate Ada constants for the HTTP parameters you might receive in
return. Once more the goal is to help avoid typos in the Ada code.
For instance, we will consider a simple template file, found in a local file `resources/block1.thtml'. This template contains the following
simple html code:
<form>
<input name="PARAM1" value="@_TAG1_@" />
<input name="PARAM2" value="@_TAG2_@" />
</form>
When you run templates2ada, the following Ada package will be generated. Note that this is only the default output of templates2ada, which
can be fully tailored to your needs.
package Templates.Block1 is
pragma Style_Checks (Off);
Template : constant string := "resources/block1.thtml";
Tag1 : constant String := "TAG1";
Tag2 : constant String := "TAG2";
package Http is
Param1 : constant String := "PARAM1";
Param2 : constant String := "PARAM2";
end Http;
end Templates.Block1;
OPTIONS -d dir Search for template files in dir.
-h Display a summary of options.
-o file
Write the output to file.
-e ext Process all files with extension ext that are in the input directory; consider these files as template files.
-r Recurse into subdirectories.
-t file
Use file as the output template file. The templates parser comes with an example for such a file, /usr/share/doc/templates-
parser/examples/templates.tads, that you can adapt to your own needs.
-v Verbose mode. This will output a warning when an http parameter has a name made only of template parser tags, since no matching
entry can then be created for it in the output file.
SEE ALSO templatespp(1)
The Template Parsers User's Guide in package libtemplates-parser-dev.
AUTHOR
templates2ada was written by Pascal Obry <p.obry@wanadoo.fr> as part of the Ada Web Server.
This manual page was written by Ludovic Brenta <lbrenta@debian.org> for Debian GNU/Linux.
GNU Ada Tools 2008-05-04 TEMPLATES2ADA(1)