Sponsored Content
Full Discussion: The here document <<
Top Forums Shell Programming and Scripting The here document << Post 96677 by tej.buch on Sunday 22nd of January 2006 11:05:09 PM
Old 01-23-2006
hi....i understood why the here block is used...but i fail to understand the exact control flow behind it...i mean how does is work and what is the concept behind it? can u kindly throw some light on it? thanks again
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. Shell Programming and Scripting

here document not working

I tried doing ftp myhost <<HERE username password quit HERE but it doesnt work. Why? When I do ftp host, I always get prompted for username, and once I type that in I get prompted for password. But when I try doing it from here document it freezes. (2 Replies)
Discussion started by: JamesByars
2 Replies

5. Shell Programming and Scripting

ssh and here document

Hi :) how can I use here doc to use ssh? I am facing a problem with the below script: #!/bin/bash ssh hosein@localhost << * 123456 * "123456" is my password Thanks (2 Replies)
Discussion started by: htabesh
2 Replies

6. 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

7. Shell Programming and Scripting

Variables in HERE DOCUMENT

Here is my problem: can we set the variables in the HERE DOCUMENT? I have tried but failed. Any one has good comments please let me know. #!/bin/csh -f pbrun -u xmgbrk runshell <<! @ $num1 = `wc -l /home/tpltp/csh/scripts/who.csh` echo "$num1" if ( $num1 > 0 ) then echo $num1 | tee -a... (1 Reply)
Discussion started by: tpltp
1 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
UDM_GET_RES_FIELD(3)							 1						      UDM_GET_RES_FIELD(3)

udm_get_res_field - Fetch a result field

SYNOPSIS
string udm_get_res_field (resource $res, int $row, int $field) DESCRIPTION
Fetch a mnoGoSearch result field. PARAMETERS
o $res -$res - a link to result identifier, received after call to udm_find(3). o $row -$row - the number of the link on the current page. May have values from 0 to $UDM_PARAM_NUM_ROWS-1. o $field -$field - field identifier, may have the following values: o UDM_FIELD_URL - document URL field o UDM_FIELD_CONTENT - document Content-type field (for example, text/html). o UDM_FIELD_CATEGORY - document category field. Use udm_cat_path(3) to get full path to current category from the categories tree root. (This parameter is available only in PHP 4.0.6 or later). o UDM_FIELD_TITLE - document title field. o UDM_FIELD_KEYWORDS - document keywords field (from META KEYWORDS tag). o UDM_FIELD_DESC - document description field (from META DESCRIPTION tag). o UDM_FIELD_TEXT - document body text (the first couple of lines to give an idea of what the document is about). o UDM_FIELD_SIZE - document size. o UDM_FIELD_URLID - unique URL ID of the link. o UDM_FIELD_RATING - page rating (as calculated by mnoGoSearch). o UDM_FIELD_MODIFIED - last-modified field in unixtime format. o UDM_FIELD_ORDER - the number of the current document in set of found documents. o UDM_FIELD_CRC - document CRC. RETURN VALUES
udm_get_res_field(3) returns result field value on success, FALSE on error. PHP Documentation Group UDM_GET_RES_FIELD(3)
All times are GMT -4. The time now is 02:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy