Sponsored Content
Top Forums Shell Programming and Scripting Display variables in CAT area Post 302328914 by vgersh99 on Thursday 25th of June 2009 12:37:19 PM
Old 06-25-2009
loose the quotes around END:
Code:
     << [-]word
           The shell input is read up to a line that is the  same
           as word, or to an EOF. No parameter substitution, com-
           mand substitution, or file  name  generation  is  per-
           formed  on  word.  The  resulting  document,  called a
           here-document, becomes  the  standard  input.  If  any
           character  of  word  is  quoted,  no interpretation is
           placed upon the characters of the document. Otherwise,
           parameter  and command substitution occur, \NEWLINE is
           ignored, and \ must be used to quote the characters \,
           $,  `,  and  the  first  character  of  word.  If - is
           appended to <<, then all  leading  tabs  are  stripped
           from word and from the document.

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

multiple DISPLAY variables

Hi there, What I am trying to do is export the same screen to 2 different machines at once. I know you can use: DISPLAY=IP:0.0 export DISPLAY to send a screen to one machine but is there a way to send the screen to two machines at once by a similiar (or completely different, for that... (3 Replies)
Discussion started by: QUartz Ite
3 Replies

2. Shell Programming and Scripting

cat setting variables

hi All I have a file that has 4 lines: 1. yesterday's date (mm/dd/yyyy) 2. yesterday's day- dd 3. yesterday's month- mm 4. yesterday's year- yyyy I want to read this file and place them in variables. how can I do this. Please help. thanks in advance!! KS (3 Replies)
Discussion started by: skotapal
3 Replies

3. UNIX for Dummies Questions & Answers

using cat and grep to display missing records

Gentle Unix users, Can someone tell me how I can use a combination of the cat and grep command to display records that are in FileA but missing in FileB. cat FileA one line at a time and grep to see if it is in fileB. If it is ignore. If line is not in fileB display the line. Thanks in... (4 Replies)
Discussion started by: jxh461
4 Replies

4. UNIX for Dummies Questions & Answers

grep/cat/more -- search in a txt file and display content from a specific "keyword"

Hi, I have a .txt file Sample: ===================== NEXT HOST ===================== AEADBAS001 ip access-list extended BLA_Incoming_Filter ip access-list extended BLA_Outgoing_Filter access-list 1 permit xxxxxxxxxxxxxx access-list 2 permit xxxxxxxxxxxxxx =====================... (4 Replies)
Discussion started by: I-1
4 Replies

5. UNIX for Dummies Questions & Answers

How to Display a range of values in the output of cat

When I use this command I get an output of some numbers cat ac.20070511 | cut -d" " -f19 Is there any way for me to display only the numbers that are greater than 1000 but not all the numbers in the ouput. Can any one help me with this. :) (8 Replies)
Discussion started by: venu_nbk
8 Replies

6. UNIX for Dummies Questions & Answers

Difference between cat , cat > , cat >> and touch !!!

Hi Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX? Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies

7. UNIX and Linux Applications

display correctly variables with a \

Hi, We are in AIX 5.3 In a shell program I use a variable coming from a file and containing a path : 'C:\temp\titi' Z2='C:\temp\titi' echo $Z2 When I want to print the variable with echo command , I have : C: emp iti How to have the correct variable ? Thanks (1 Reply)
Discussion started by: tbeghain
1 Replies

8. Shell Programming and Scripting

Script with ^M causes display issue with cat or more

I have a script to do a couple simple but repetitive commands on files that are provided to us. One of the things is to get rid of the line feeds. This is the section that is causing problems, i even cut this section into its own file to make sure nothing else was affecting it. #!/usr/bin/bash... (4 Replies)
Discussion started by: oly_r
4 Replies

9. UNIX for Dummies Questions & Answers

Cat and variables

I've been having trouble with cat and variables. If I do the following: var1=filex cat $var1 I get the contents of the file named filex If I do var2="X-0101\ 2-10-2013.txt" cat "$var2" I get cat : cannot open X-0101\ 2-10-2013.txt. I have tried to do cat $var2 without quotes as... (8 Replies)
Discussion started by: newbie2010
8 Replies

10. Shell Programming and Scripting

Cat command not working to display Mac file in Ubuntu

Hi, Recently I got a .txt file from Mac user. when I try to open it in my Ubuntu machine using cat command it is not displaying any content of file however I can see the content using vi. Anyone know How to see its content using cat as I have to process it in my shell script. Thanks in... (4 Replies)
Discussion started by: diehard
4 Replies
LaTeX::Table::Types::TypeI(3pm) 			User Contributed Perl Documentation			   LaTeX::Table::Types::TypeI(3pm)

NAME
LaTeX::Table::Types::TypeI - Interface for LaTeX table types. DESCRIPTION
This is the type interface (or Moose role), that all type objects must use. LaTeX::Table delegates the LaTeX code generation to type objects. It stores all information we have in easy to use "TEMPLATE VARIABLES". LaTeX::Table ships with very flexible templates, but it is possible to use the template variables defined here to build custom templates. INTERFACE
"generate_latex_code" TEMPLATE VARIABLES
Most options are accessible here: "CENTER, LEFT, RIGHT" Example: [% IF CENTER %]centering [% END %] "ENVIRONMENT, STAR, POSITION, SIDEWAYS" These options for floating environments are typically used like: [% IF ENVIRONMENT %]egin{[% ENVIRONMENT %][% IF STAR %]*[% END %]}[% IF POSITION %][[% POSITION %]][% END %] ... [% END %] # the tabular environment here ... [% IF ENVIRONMENT %] ... end{[% ENVIRONMENT %][% IF STAR %]*[% END %]}[% END %] "CAPTION_TOP, CAPTION_CMD, SHORTCAPTION, CAPTION, CONTINUED, CONTINUEDMSG" The variables to build the caption command. Note that there is NO template for the "maincaption" option. "CAPTION" already includes this maincaption if specified. "LABEL" The label: [% IF LABEL %]label{[% LABEL %]}[% END %] "TABULAR_ENVIRONMENT, WIDTH, COLDEF" These three options define the tabular environment: egin{[% TABULAR_ENVIRONMENT %]}[% IF WIDTH %]{[% WIDTH %]}[% END %]{[% COLDEF %]} "FONTFAMILY, FONTSIZE" Example: [% IF FONTSIZE %][% FONTSIZE %] [% END %][% IF FONTFAMILY %][% FONTFAMILY %]family [% END %] "TABLEHEADMSG, TABLETAIL, TABLELASTTAIL, XENTRYSTRETCH" For the multi-page tables. "MAXWIDTH, FOOTTABLE" Currently only used by LaTeX::Table::Types::Ctable. In addition, some variables already contain formatted LaTeX code: "HEADER_CODE" The formatted header: oprule multicolumn{2}{c}{Item} & \ cmidrule(r){1-2} Animal & Description & Price \ midrule "DATA_CODE" The formatted data: Gnat & per gram & 13.65 \ & each & 0.01 \ Gnu & stuffed & 92.59 \ Emu & stuffed & 33.33 \ Armadillo & frozen & 8.99 \ ottomrule "RESIZEBOX_BEGIN_CODE, RESIZEBOX_END_CODE" Everything between these two template variables is resized according the "resizebox" option. "EXTRA_ROW_HEIGHT_CODE, DEFINE_COLORS_CODE, RULES_COLOR_GLOBAL_CODE, RULES_WIDTH_GLOBAL_CODE" Specified by the theme. "EXTRA_ROW_HEIGHT_CODE" will contain the corresponding LaTeX extrarowheight command, e.g for '1pt': setlength{extrarowheight}{1pt} Otherwise it will contain the empty string. The other template variables will contain the command specified by the corresponding theme option. Finally, some variables allow access to internal "LaTeX::Table" variables: "LT_NUM_COLUMNS" Contains the number of columns of the table. "LT_BOTTOM_RULE_CODE" Code that draws the rules at the bottom of the table according the theme options. SEE ALSO
LaTeX::Table The predefined templates: LaTeX::Table::Types::Std, LaTeX::Table::Types::Ctable, LaTeX::Table::Types::Longtable, LaTeX::Table::Types::Xtab LICENSE AND COPYRIGHT
Copyright (c) 2006-2010 "<limaone@cpan.org>" This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. perl v5.10.1 2010-10-27 LaTeX::Table::Types::TypeI(3pm)
All times are GMT -4. The time now is 08:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy