Sponsored Content
Full Discussion: Variables in HERE DOCUMENT
Top Forums Shell Programming and Scripting Variables in HERE DOCUMENT Post 302289060 by otheus on Wednesday 18th of February 2009 02:47:01 PM
Old 02-18-2009
"HERE" docs and batch runs don't mix. That's because the HERE document is sent to the standard input of "pbrun" which doesn't know what to do with it (it think it's a batch command maybe??)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help on find a document

Hey all, I've been trying to find a document. The document is a list of all supported hardware that Solaris 7 supports. If anyone knows where this can be found thx in advanced. I've tried looking through the docs.sun.com site and can't find what I am after. It's just a list of hardware... (1 Reply)
Discussion started by: merlin
1 Replies

2. Shell Programming and Scripting

How to split a document

Hi.. Does anybody knows how can I split a file in N documents?? I have a document of more than 80,000 lines (it is generated in a dynamic way, sometimes has 80,000 others 30,000 , or 1000,000) Im trying tyo break this file in only 1 lines of commands but I want to break it in a N differents files... (2 Replies)
Discussion started by: gtapia
2 Replies

3. Shell Programming and Scripting

echo with a here-document

I do not know how valid this post is, but here it is. I was writing a script for testing some development code that I had written. It involved many echo statements to redirect the output into a log file. Given the large number of echo statements, I took to this solution cat <<EOF >>... (2 Replies)
Discussion started by: vino
2 Replies

4. UNIX for Dummies Questions & Answers

Teaching myself Here Document

I understand that a Here Document will redirect all of the lines between the beginning marker for the here document and the ending marker into the command specified just as if the text were coming from standard input. I am trying to understand the Here Document with this example: # Menu file... (3 Replies)
Discussion started by: ericelysia
3 Replies

5. Shell Programming and Scripting

The here document <<

Hello, I want to know the use of the here document with the << operator. Tried to go through some books but the concept was not clear. Please can any1 expalin me this with a simple example. Thanks, Rahul. (6 Replies)
Discussion started by: rahulrathod
6 Replies

6. Programming

How to convert byteArray variables to HexaString variables for Linux?

Hello everybody, I am having problem in converting byte array variables to Hexa String variables for Linux. I have done, converting byte array variables to Hexa String variables for Windows but same function doesn't work for linux. Is there any difference in OS ? The code for Windows is given... (2 Replies)
Discussion started by: ritesh_163
2 Replies

7. Shell Programming and Scripting

Document

Plz can somebody give me the shell and perl scripting documents,i need to start the scrpts learning.now i know about the linux commands,but need help in putting the same in the scripting with do,if,while and also using diffrent commands in the scrpipts,pls help.. (3 Replies)
Discussion started by: satish.res
3 Replies

8. Shell Programming and Scripting

Here document inside a here document?

Can we use a here document inside a here document? Something like this ssh user@remotehost << REMOTE sudo vserver vsernamename enter << VSERVER perform actions on vserver. VSERVER REMOTE (6 Replies)
Discussion started by: mnanavati
6 Replies

9. Homework & Coursework Questions

HTML document

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: <HTML><HEAD><TITLE>Personal Web Page</TITLE></HEAD> <BODY BGCOLOR="WHITE"><H3> <CENTER>My Personal Page<HR>... (0 Replies)
Discussion started by: Larry_1
0 Replies

10. Shell Programming and Scripting

Fetch the value from Here Document

I have code like var="1" echo << EOF export `var="2"` EOF echo $var The value of var is printed here is 1 but it should be 2 Any error there? ---------- Post updated at 11:44 AM ---------- Previous update was at 10:33 AM ---------- Also tried var="1" echo var << EOF echo... (1 Reply)
Discussion started by: adisky123
1 Replies
KinoSearch1::Analysis::TokenBatch(3pm)			User Contributed Perl Documentation		    KinoSearch1::Analysis::TokenBatch(3pm)

Add many tokens to the batch, by supplying the string to be tokenized, and arrays of token starts and token ends (specified in bytes).

NAME
KinoSearch1::Analysis::TokenBatch - a collection of tokens SYNOPSIS
while ( $batch->next ) { $batch->set_text( lc( $batch->get_text ) ); } EXPERIMENTAL API
TokenBatch's API should be considered experimental and is likely to change. DESCRIPTION
A TokenBatch is a collection of Tokens which you can add to, then iterate over. METHODS
new my $batch = KinoSearch1::Analysis::TokenBatch->new; Constructor. append $batch->append( $text, $start_offset, $end_offset, $pos_inc ); Add a Token to the end of the batch. Accepts either three or four arguments: text, start_offset, end_offset, and an optional position increment which defaults to 1 if not supplied. For a description of what these arguments mean, see the docs for Token. next while ( $batch->next ) { # ... } Proceed to the next token in the TokenBatch. Returns true if the TokenBatch ends up located at valid token. ACCESSOR METHODS
All of TokenBatch's accessor methods affect the current Token. Calling any of these methods when the TokenBatch is not located at a valid Token will trigger an exception. set_text get_text Set/get the text of the current Token. set_start_offset get_start_offset Set/get the start_offset of the current Token. set_end_offset get_end_offset Set/get the end_offset of the current Token. set_pos_inc get_pos_inc Set/get the position increment of the current Token. COPYRIGHT
Copyright 2005-2010 Marvin Humphrey LICENSE, DISCLAIMER, BUGS, etc. See KinoSearch1 version 1.00. perl v5.14.2 2011-11-15 KinoSearch1::Analysis::TokenBatch(3pm)
All times are GMT -4. The time now is 04:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy