Sponsored Content
Top Forums Shell Programming and Scripting concatenating static string to records in data file Post 302077507 by gillbates on Thursday 22nd of June 2006 06:04:03 PM
Old 06-22-2006
I had vgersh99's response open on one of my monitors since yesterday so I hadn't noticed thestevew's response. While thestevew's response looks good and would undoubtably work it's not near as obscure as vgersh99's response. So in the old unix spirit I'll go with that.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

finding null records in data file

I am having a "|" delimited flat file and I have to pick up all the records with the 2nd field having null value. Please suggest. (3 Replies)
Discussion started by: dsravan
3 Replies

2. UNIX for Dummies Questions & Answers

concatenating string and variable

how to concatenate a string and variable like a=rahul and i want to put it into another variable 'b' as "rahul_prasath" i dont want to use another variable for "_prasath" how to do it? (1 Reply)
Discussion started by: rolex.mp
1 Replies

3. UNIX for Dummies Questions & Answers

Concatenating records from 2 files

I'm trying to concatenate records from 2 files and output it to a third file. The problem I'm running into is that it seems like the "While" command is limited to processing one file at a time. It seems like you could read a record from file1 into a variable. Then do the same for the for file2.... (4 Replies)
Discussion started by: Powcmptr
4 Replies

4. Shell Programming and Scripting

Extract data from large file 80+ million records

Hello, I have got one file with more than 120+ million records(35 GB in size). I have to extract some relevant data from file based on some parameter and generate other output file. What will be the besat and fastest way to extract the ne file. sample file format :--... (2 Replies)
Discussion started by: learner16s
2 Replies

5. Shell Programming and Scripting

Concatenating string with numbers

Hi, I want to display the string value with number value. I dont know how to display. Can anyone help me. This is my code export A=${file_name} echo $a $b $sum | awk '{ printf "%011.f,%014.f,%014.f\n", $1,$2,$3}' >> ${MRR_OUTPUT} the out put shold be ${A}, $a, $b filename,... (2 Replies)
Discussion started by: easterraj
2 Replies

6. Shell Programming and Scripting

Concatenating File and String for Sendmail

I want o add a variable in addition to a file which will be send with sendmail. I have problems to find the correct syntax for concatenating this variable called $MyVariable. sendmail mai@domain.com </tmp/errormessage.txt $MyVariable] Thanks for your help! (2 Replies)
Discussion started by: high5
2 Replies

7. Shell Programming and Scripting

de concatenating a string

I have a variable var=string1:string2:string3 I want to get the string de-concatenated and put it as var1=string1 var2=string2 var3=string3 Thanks in advance. ---------- Post updated at 02:18 PM ---------- Previous update was at 01:45 PM ---------- I got the solution as below:... (2 Replies)
Discussion started by: Deepak62828r
2 Replies

8. Shell Programming and Scripting

Concatenating the lines of a data

I have a data of 1 lac lines with the following format abcde,1,2,3,4, ,ee ,ff ,gg ,hh ,mm abcde,3,4,5,6, ,we ,qw ,as ,zx ,cf abcde,1,5,6,7, ,dd ,aa ,er .... .... (6 Replies)
Discussion started by: aravindj80
6 Replies

9. UNIX for Dummies Questions & Answers

Problems concatenating data using UNIX?

Hello, Can somebody help me to solve this inconsistent data issue. I have a pipe delimiter file and one of the column is a comment. I am trying to concatenate into one single sentence. For instance, I have a file actually with 2 records but the way it considers the first record is as different... (3 Replies)
Discussion started by: brialp
3 Replies

10. Shell Programming and Scripting

How can I retrieve the matching records from data file mentioned?

XYZNA0000778800Z 16123000012300321000000008000000000000000 16124000012300322000000007000000000000000 17234000012300323000000005000000000000000 17345000012300324000000004000000000000000 17456000012300325000000003000000000000000 9 XYZNA0000778900Z 16123000012300321000000008000000000000000... (8 Replies)
Discussion started by: later_troy
8 Replies
HTTPRESPONSE(3) 							 1							   HTTPRESPONSE(3)

The HttpResponse

CLASS SYNOPSIS
HttpResponse HttpResponse o static void HttpResponse::capture (void ) o static int HttpResponse::getBufferSize (void ) o static bool HttpResponse::getCache (void ) o static string HttpResponse::getCacheControl (void ) o static string HttpResponse::getContentDisposition (void ) o static string HttpResponse::getContentType (void ) o static string HttpResponse::getData (void ) o static string HttpResponse::getETag (void ) o static string HttpResponse::getFile (void ) o static bool HttpResponse::getGzip (void ) o static mixed HttpResponse::getHeader ([string $name]) o static int HttpResponse::getLastModified (void ) o static string HttpResponse::getRequestBody (void ) o static resource HttpResponse::getRequestBodyStream (void ) o static array HttpResponse::getRequestHeaders (void ) o static resource HttpResponse::getStream (void ) o static float HttpResponse::getThrottleDelay (void ) o static string HttpResponse::guessContentType (string $magic_file, [int $magic_mode = MAGIC_MIME]) o static void HttpResponse::redirect ([string $url], [array $params], [bool $session = false], [int $status]) o static bool HttpResponse::send ([bool $clean_ob = true]) o static bool HttpResponse::setBufferSize (int $bytes) o static bool HttpResponse::setCache (bool $cache) o static bool HttpResponse::setCacheControl (string $control, [int $max_age], [bool $must_revalidate = true]) o static bool HttpResponse::setContentDisposition (string $filename, [bool $inline = false]) o static bool HttpResponse::setContentType (string $content_type) o static bool HttpResponse::setData (mixed $data) o static bool HttpResponse::setETag (string $etag) o static bool HttpResponse::setFile (string $file) o static bool HttpResponse::setGzip (bool $gzip) o static bool HttpResponse::setHeader (string $name, [mixed $value], [bool $replace = true]) o static bool HttpResponse::setLastModified (int $timestamp) o static bool HttpResponse::setStream (resource $stream) o static bool HttpResponse::setThrottleDelay (float $seconds) o static bool HttpResponse::status (int $status) CLASS MEMBERS
PROPERTIES
Static Properties +----------+-------------------------------+---+---+ |Modifiers | | | | | | | | | | | Type | | | | | | | | | | Name | | | | | | | | | | Description | | | | | | | | +----------+-------------------------------+---+---+ |protected | | | | | | | | | | | boolean | | | | | | | | | | cache | | | | | | | | | | whether caching the response | | | | | should be attempted | | | | | | | | |protected | | | | | | | | | | | boolean | | | | | | | | | | gzip | | | | | | | | | | whether the sent entity | | | | | should be gzip'ed on the fly | | | | | | | | |protected | | | | | | | | | | | string | | | | | | | | | | eTag | | | | | | | | | | the generated or custom ETag | | | | | | | | |protected | | | | | | | | | | | integer | | | | | | | | | | lastModified | | | | | | | | | | the generated or custom time- | | | | | stamp of last modification | | | | | | | | |protected | | | | | | | | | | | string | | | | | | | | | | cacheControl | | | | | | | | | | | | | | | Cache-Control setting | | | | | | | | |protected | | | | | | | | | | | string | | | | | | | | | | contentType | | | | | | | | | | the Content-Type of the sent | | | | | entity | | | | | | | | |protected | | | | | | | | | | | string | | | | | | | | | | contentDisposition | | | | | | | | | | the Content-Disposition of | | | | | the sent entity | | | | | | | | |protected | | | | | | | | | | | integer | | | | | | | | | | bufferSize | | | | | | | | | | the chunk buffer size used | | | | | for throttling | | | | | | | | |protected | | | | | | | | | | | double | | | | | | | | | | throttleDelay | | | | | | | | | | the seconds to delay when | | | | | throttling | | | | | | | | +----------+-------------------------------+---+---+ PREDEFINED CONSTANTS
+--------+--------------------------------------+---+ | Type | | | | | | | | | Name | | | | | | | | Description | | | | | | +--------+--------------------------------------+---+ |integer | | | | | | | | | REDIRECT | | | | | | | | guess applicable redirect method | | | | | | |integer | | | | | | | | | REDIRECT_PERM | | | | | | | | permanent redirect ( 301 Moved per- | | | | manently) | | | | | | |integer | | | | | | | | | REDIRECT_FOUND | | | | | | | | standard redirect ( 302 Found) | | | | | | |integer | | | | | | | | | REDIRECT_POST | | | | | | | | redirect applicable to POST requests | | | | ( 303 See other) | | | | | | |integer | | | | | | | | | REDIRECT_PROXY | | | | | | | | proxy redirect ( 305 Use proxy) | | | | | | |integer | | | | | | | | | REDIRECT_TEMP | | | | | | | | temporary redirect ( 307 Temporary | | | | Redirect) | | | | | | +--------+--------------------------------------+---+ PHP Documentation Group HTTPRESPONSE(3)
All times are GMT -4. The time now is 10:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy