Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tpage(1) [centos man page]

TPAGE(1)						User Contributed Perl Documentation						  TPAGE(1)

NAME
Template::Tools::tpage - Process templates from command line USAGE
tpage [ --define var=value ] file(s) DESCRIPTION
The tpage script is a simple wrapper around the Template Toolkit processor. Files specified by name on the command line are processed in turn by the template processor and the resulting output is sent to STDOUT and can be redirected accordingly. e.g. tpage myfile > myfile.out tpage header myfile footer > myfile.html If no file names are specified on the command line then tpage will read STDIN for input. The "--define" option can be used to set the values of template variables. e.g. tpage --define author="Andy Wardley" skeleton.pm > MyModule.pm See Template for general information about the Perl Template Toolkit and the template language and features. AUTHOR
Andy Wardley <abw@wardley.org> <http://wardley.org/> VERSION
2.68, distributed as part of the Template Toolkit version 2.19, released on 27 April 2007. COPYRIGHT
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
ttree perl v5.16.3 2012-01-13 TPAGE(1)

Check Out this Related Man Page

TPAGE(1)						User Contributed Perl Documentation						  TPAGE(1)

NAME
Template::Tools::tpage - Process templates from command line USAGE
tpage [ --define var=value ] file(s) DESCRIPTION
The tpage script is a simple wrapper around the Template Toolkit processor. Files specified by name on the command line are processed in turn by the template processor and the resulting output is sent to STDOUT and can be redirected accordingly. e.g. tpage myfile > myfile.out tpage header myfile footer > myfile.html If no file names are specified on the command line then tpage will read STDIN for input. The "--define" option can be used to set the values of template variables. e.g. tpage --define author="Andy Wardley" skeleton.pm > MyModule.pm See Template for general information about the Perl Template Toolkit and the template language and features. AUTHOR
Andy Wardley <abw@wardley.org> <http://wardley.org/> VERSION
2.68, distributed as part of the Template Toolkit version 2.19, released on 27 April 2007. COPYRIGHT
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
ttree perl v5.12.1 2008-11-13 TPAGE(1)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

PIpe Spy

Im trying to get my program to behave in this way: prog 1 | ./pipespy myfile.dat | prog2 the standard output of prog1 is supplied as the input to prog2 and copied into file myfile.dat. need help (11 Replies)
Discussion started by: jodders
11 Replies

2. Shell Programming and Scripting

Command output to a variable.

With cut -c 8-13 myfile, I am getting some numeric value. In my shell script I am trying to assign something like this, var=cut -c 8-13 myfile But at the time of execution I am getting -c is not found. If I dont assign, then script executes well. Can we not simply use the value from one... (8 Replies)
Discussion started by: videsh77
8 Replies

3. UNIX for Dummies Questions & Answers

file.z

Hi, I have a file which is appearently ziped and it's name is myfile.z. then to use it ( extraction ) I type : tar xvf myfile.z But I receive : tar: directory checksum error Why ? What should be the solution ? Many thanks. (4 Replies)
Discussion started by: big123456
4 Replies

4. Shell Programming and Scripting

if test for empty and non-existing file

How to write this condition in ksh? if myfile is empty or myfile does not exist then do action1 fi is this OK? if ] -o ] then then do action1 fi Thanks. (3 Replies)
Discussion started by: GNMIKE
3 Replies

5. UNIX for Dummies Questions & Answers

rlogin issues

hi i got 3 boxes, boxA, boxB, boxC i can do the below boxA> ufsdump 0fu boxB:/mydirectory/myfile /myfile boxA> rlogin boxB is okay but when i do the below boxA> ufsdump 0fu boxC:/mydirectory/myfile /myfile, system says error, boxA> rlogin boxC got error on... (5 Replies)
Discussion started by: yls177
5 Replies

6. Shell Programming and Scripting

Double Substitution variables in ksh

Hi I have a variable whose value is like this i=/test/test1/test2/myfile.cd.070505123457 i would like to have the value of myfile.cd stored into another variable my attempt is test=${i##*/} ;echo $test ##and i get myfile.cd.070505123457 since what i wnat is myfile.cd i try this... (19 Replies)
Discussion started by: xiamin
19 Replies

7. Shell Programming and Scripting

Removing Garbage output

I am using following code to read myfile.ddl line by line. But the thing is it is printing lot of garbage which are the names of the files and directories in which myfile.ddl is present. Kindly refine the code so that only myfile.ddl contents are only read LOGFILE="logfile.txt"... (4 Replies)
Discussion started by: skyineyes
4 Replies

8. UNIX for Dummies Questions & Answers

How do I extract text only from html file without HTML tag

I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part. Same problem happens in "type" command in MS-DOS. I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies

9. Post Here to Contact Site Administrators and Moderators

Unsubscribe

Hi I would like to change my username do need to unsubscribe to do this? Andy (3 Replies)
Discussion started by: andyblaylock
3 Replies

10. Shell Programming and Scripting

Shell script to read lines in a text file and filter user data

hi all, I have this file with some user data. example: $cat myfile.txt FName|LName|Gender|Company|Branch|Bday|Salary|Age aaaa|bbbb|male|cccc|dddd|19900814|15000|20| eeee|asdg|male|gggg|ksgu|19911216||| aara|bdbm|male|kkkk|acke|19931018||23| asad|kfjg|male|kkkc|gkgg|19921213|14000|24|... (4 Replies)
Discussion started by: srimal
4 Replies

11. Shell Programming and Scripting

Eval command help

I have file called myfile which has the text "myserver" in it. I need to have a command to ping "myserver". How would I do that? I tried when I type at the terminal I get the output as . How do I do something like a ? thanks, Nick (5 Replies)
Discussion started by: nikhilfake
5 Replies

12. Shell Programming and Scripting

splitting value

Hello, i want to take a one word from my file. -- myfile.txt -- test blablabla suPHP_ConfigPath /home/performe/etc blablabla etc. bla bla. -- myfile.txt -- How can i take performe from this file ? Thank you. (7 Replies)
Discussion started by: SAYGIN
7 Replies

13. Shell Programming and Scripting

Get filename with the fullname

Do you know some method to get the filename with the complete full path name? For example, i have: /home/myhome/myfile And i want to get myfile Regards! (3 Replies)
Discussion started by: Xedrox
3 Replies

14. What is on Your Mind?

The Martian by Andy Weir - Who Read It? What Did You Think?

Who has read "The Martian by Andy Weir" ?? What did you think? How did you like it? Thanks! (3 Replies)
Discussion started by: Neo
3 Replies

15. Ubuntu

[: too many arguments

line 5: #!/bin/bash old=$(du -sh /home/andy/Downloads/myfile.iso) while true; do new=$(du -sh /home/andy/Downloads/myfile.iso) if ; then break fi old=$new xdotool getactivewindow key Ctrl sleep 5 done line 5: bash - Meaning of " (square brackets)... (9 Replies)
Discussion started by: drew77
9 Replies