Hi all, I need some help on switching field/column values. For example I have a file name data.txt which contains:
a b
a b
a b
and I want to switch a and b and save it to the same file.
the file data.txt then will have:
b a
b a
b a
The problem is, well, I know how to... (7 Replies)
Hi,
Can anyone tell me how to print the column name anong with the value from the table in shell script e.g
#!/bin/ksh
var=`sqlplus scott/tiger << -e
set heading off feedback off
select * from emp;
quit;
e`
echo $var
My output should be;
... (5 Replies)
Hi All,
I have two files
file1:
abc,def,ghi,5,jkl,mno
pqr,stu,ghi,10,vwx,xyz
cba,ust,ihg,4,cdu,oqw
file2:
ravi,def,kishore
ramu,ust,krishna
joseph,stu,mike
I need two output file as follows
If field3 in file1 is same as field3 in the next line then the field4 should add... (1 Reply)
Hello Expert,
I need to transpose Date-Timestamp based on same column values and calculate time difference. The input file would be as below and required output is mentioned in the bottom
INPUT File
========
08/23/2012 12:36:09 JOB_5340
08/23/2012 12:36:14 JOB_5340
08/23/2012... (2 Replies)
Hello Everyone!
I am new on this forum and this is my first post. I wish to apologize for my, not canonical, English.
I would like to solve this problem but I have no clue of how do it!I will be grateful if someone could help me!
I have a table like this:
gene TF1 TF2 TF3 TF4
gene1 1 2 3 4... (5 Replies)
Hi
I have 5 columns like this
a b c d e
f g h i j
k l m n o
From 2nd column till the 5th column of every record, I would like to transpose them as rows, so my output file contains only one row
a
b
c
d
e
f
g
h
i
j (9 Replies)
this is part of a KT i am going thru.
i am writing a script in bash shell, linux where i have 2 columns where 1st signifies the nth hour like 00, 01, 02...23 and 2nd the file size.
sample data attached.
Desired output is 3 columns which will give the nth hour, number of entries in nth hour and... (3 Replies)
Gents,
Transpose from row to column, taking in consideration the first column, which contends the date.
Input file
72918,111000009,111000009,111000009,111000009,111000009,111000009,111000009,111000009,111000009
72918,2356,2357,2358,2359,2360,2361,2362,2363,2364
72918,0,0,0,0,0,0,0,0,0... (12 Replies)
Discussion started by: jiam912
12 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)