Sponsored Content
Top Forums Shell Programming and Scripting Execute sequential files and store data in single file Post 302779753 by katakamvivek on Wednesday 13th of March 2013 10:08:51 AM
Old 03-13-2013
sorry for the confusion,please tell the code for my requirement which mentioned above.

dnt consider my code.
 

10 More Discussions You Might Find Interesting

1. Programming

Reading special characters while converting sequential file to line sequential

We have to convert a sequential file to a 80 char line sequential file (HP UX platform).The sequential file contains special characters. which after conversion of the file to line sequential are getting coverted into "new line" or "tab" and file is getting distorted. Is there any way to read these... (2 Replies)
Discussion started by: Rajeshsu
2 Replies

2. Shell Programming and Scripting

How to store Data in a File

I want to read a data from a read command and store it in a file...... Plz send me how I can do that Ex: read val and I want to store this val in a file called temp. (2 Replies)
Discussion started by: krishna_sicsr
2 Replies

3. Shell Programming and Scripting

How to sca a sequential file and fetch some substring data from it

Hi, I have a task where i need to scan second column of seuential file and fetch first 3 digits of that column For e.g. FOLLOWING IS THE SAMPLE FOR MY SEQUENTIAL FILE AU_ID ACCT_NUM CRNCY_CDE THHSBC001 30045678 THB THHSBC001 10154267 THB THHSBC001 ... (2 Replies)
Discussion started by: manmeet
2 Replies

4. Shell Programming and Scripting

Execute stored procedure through script in sybase database and store the output in a .csv file

Hi, I have a sybase stored procedure which takes two input parameters (start_date and end_date) and when it get executed, it gives few records as an output. I want to write a unix script (ksh) which login to the sybase database, then execute this stored procedure (takes the input parameter as... (8 Replies)
Discussion started by: amit.mathur08
8 Replies

5. Programming

Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX

Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies

6. Shell Programming and Scripting

Parse a single line file and store value.

I have a single line file like this : Average Fragmentation Quotient : 3.084121 Now I want to store the value which comes after ":" i,e 3.084121 into a variable. And if this variable crosses above 6 i want to call another script... can any one help me on this... (7 Replies)
Discussion started by: Hyp_Todd
7 Replies

7. Programming

How to extract data from CVS log files and store it in database ?

Am currently working on CVS projects .. I have generated the cvs log file which is in the RCS file format . .I want to extract file path ,total revision ,date ,author and message from that file . .I want a program in java which would extract the data from cvs log file. .Pls help me out.. My... (0 Replies)
Discussion started by: EVERSOFT
0 Replies

8. Shell Programming and Scripting

Help me pls : splitting single file in unix into different files based on data

I have a file in unix with sample data as follows : -------------------------------------------------------------- -------------------------------------------------------------- {30001002|XXparameter|Layout|$ I want this file to be splitted into different files and corresponding to the sample... (54 Replies)
Discussion started by: Ravindra Swan
54 Replies

9. Shell Programming and Scripting

How to store the file name in a single line??

hi, i have a variable, in which i am storing the file names that are present in the current directory. $ls -1 s1.txt s2.txt s3.txt $FILES=`ls -ltr | grep "^-" | awk '{print $NF}'` $echo $FILES s1.txt s2.txt s3.txt i want to store the files names in a single line in the variable... (7 Replies)
Discussion started by: Little
7 Replies

10. Shell Programming and Scripting

How to merge the multiple data files as a single file?

Hi Experts, I have created multiple scripts and send the output to new file, getting this output to my mailbox on daily basis. I would like to send the all outputs to a single file, need to merge all file outputs on a single file. For example, Created script for df -h > df.doc grep... (7 Replies)
Discussion started by: seenuvasan1985
7 Replies
Mojo::Headers(3pm)					User Contributed Perl Documentation					Mojo::Headers(3pm)

NAME
Mojo::Headers - Headers SYNOPSIS
use Mojo::Headers; my $headers = Mojo::Headers->new; $headers->content_type('text/plain'); $headers->parse("Content-Type: text/html "); DESCRIPTION
Mojo::Headers is a container and parser for HTTP headers. ATTRIBUTES
Mojo::Headers implements the following attributes. "max_line_size" my $size = $headers->max_line_size; $headers = $headers->max_line_size(1024); Maximum line size in bytes, defaults to the value of the "MOJO_MAX_LINE_SIZE" environment variable or 10240. METHODS
Mojo::Headers inherits all methods from Mojo::Base and implements the following new ones. "accept" my $accept = $headers->accept; $headers = $headers->accept('application/json'); Shortcut for the "Accept" header. "accept_language" my $accept_language = $headers->accept_language; $headers = $headers->accept_language('de, en'); Shortcut for the "Accept-Language" header. "accept_ranges" my $ranges = $headers->accept_ranges; $headers = $headers->accept_ranges('bytes'); Shortcut for the "Accept-Ranges" header. "add" $headers = $headers->add('Content-Type', 'text/plain'); Add one or more header lines. "authorization" my $authorization = $headers->authorization; $headers = $headers->authorization('Basic Zm9vOmJhcg=='); Shortcut for the "Authorization" header. "cache_control" my $cache_control = $headers->cache_control; $headers = $headers->cache_control('max-age=1, no-cache'); Shortcut for the "Cache-Control" header. "clone" my $clone = $headers->clone; Clone headers. "connection" my $connection = $headers->connection; $headers = $headers->connection('close'); Shortcut for the "Connection" header. "content_disposition" my $content_disposition = $headers->content_disposition; $headers = $headers->content_disposition('foo'); Shortcut for the "Content-Disposition" header. "content_length" my $content_length = $headers->content_length; $headers = $headers->content_length(4000); Shortcut for the "Content-Length" header. "content_range" my $range = $headers->content_range; $headers = $headers->content_range('bytes 2-8/100'); Shortcut for the "Content-Range" header. "content_transfer_encoding" my $encoding = $headers->content_transfer_encoding; $headers = $headers->content_transfer_encoding('foo'); Shortcut for the "Content-Transfer-Encoding" header. "content_type" my $content_type = $headers->content_type; $headers = $headers->content_type('text/plain'); Shortcut for the "Content-Type" header. "cookie" my $cookie = $headers->cookie; $headers = $headers->cookie('f=b'); Shortcut for the "Cookie" header. "date" my $date = $headers->date; $headers = $headers->date('Sun, 17 Aug 2008 16:27:35 GMT'); Shortcut for the "Date" header. "dnt" my $dnt = $headers->dnt; $headers = $headers->dnt(1); Shortcut for the "DNT" (Do Not Track) header. "etag" my $etag = $headers->etag; $headers = $headers->etag('abc321'); Shortcut for the "ETag" header. "expect" my $expect = $headers->expect; $headers = $headers->expect('100-continue'); Shortcut for the "Expect" header. "expires" my $expires = $headers->expires; $headers = $headers->expires('Thu, 01 Dec 1994 16:00:00 GMT'); Shortcut for the "Expires" header. "from_hash" $headers = $headers->from_hash({'Content-Type' => 'text/html'}); Parse headers from a hash reference. "header" my $string = $headers->header('Content-Type'); my @lines = $headers->header('Content-Type'); $headers = $headers->header('Content-Type' => 'text/plain'); Get or replace the current header values. # Multiple headers with the same name for my $header ($headers->header('Set-Cookie')) { say 'Set-Cookie:'; # Multiple lines per header say for @$header; } "host" my $host = $headers->host; $headers = $headers->host('127.0.0.1'); Shortcut for the "Host" header. "if_modified_since" my $m = $headers->if_modified_since; $headers = $headers->if_modified_since('Sun, 17 Aug 2008 16:27:35 GMT'); Shortcut for the "If-Modified-Since" header. "is_finished" my $success = $headers->is_finished; Check if header parser is finished. "is_limit_exceeded" my $success = $headers->is_limit_exceeded; Check if a header has exceeded "max_line_size". "last_modified" my $m = $headers->last_modified; $headers = $headers->last_modified('Sun, 17 Aug 2008 16:27:35 GMT'); Shortcut for the "Last-Modified" header. "leftovers" my $leftovers = $headers->leftovers; Leftovers. "location" my $location = $headers->location; $headers = $headers->location('http://127.0.0.1/foo'); Shortcut for the "Location" header. "names" my $names = $headers->names; Generate a list of all currently defined headers. "parse" $headers = $headers->parse("Content-Type: text/foo "); Parse formatted headers. "proxy_authenticate" my $authenticate = $headers->proxy_authenticate; $headers = $headers->proxy_authenticate('Basic "realm"'); Shortcut for the "Proxy-Authenticate" header. "proxy_authorization" my $proxy_authorization = $headers->proxy_authorization; $headers = $headers->proxy_authorization('Basic Zm9vOmJhcg=='); Shortcut for the "Proxy-Authorization" header. "range" my $range = $headers->range; $headers = $headers->range('bytes=2-8'); Shortcut for the "Range" header. "referrer" my $referrer = $headers->referrer; $headers = $headers->referrer('http://mojolicio.us'); Shortcut for the "Referer" header, there was a typo in RFC 2068 which resulted in "Referer" becoming an official header. "remove" $headers = $headers->remove('Content-Type'); Remove a header. "sec_websocket_accept" my $accept = $headers->sec_websocket_accept; $headers = $headers->sec_websocket_accept('s3pPLMBiTxaQ9kYGzzhZRbK+xOo='); Shortcut for the "Sec-WebSocket-Accept" header. "sec_websocket_key" my $key = $headers->sec_websocket_key; $headers = $headers->sec_websocket_key('dGhlIHNhbXBsZSBub25jZQ=='); Shortcut for the "Sec-WebSocket-Key" header. "sec_websocket_origin" my $origin = $headers->sec_websocket_origin; $headers = $headers->sec_websocket_origin('http://example.com'); Shortcut for the "Sec-WebSocket-Origin" header. "sec_websocket_protocol" my $protocol = $headers->sec_websocket_protocol; $headers = $headers->sec_websocket_protocol('sample'); Shortcut for the "Sec-WebSocket-Protocol" header. "sec_websocket_version" my $version = $headers->sec_websocket_version; $headers = $headers->sec_websocket_version(13); Shortcut for the "Sec-WebSocket-Version" header. "server" my $server = $headers->server; $headers = $headers->server('Mojo'); Shortcut for the "Server" header. "set_cookie" my $set_cookie = $headers->set_cookie; $headers = $headers->set_cookie('f=b; path=/'); Shortcut for the "Set-Cookie" header. "status" my $status = $headers->status; $headers = $headers->status('200 OK'); Shortcut for the "Status" header. "to_hash" my $single = $headers->to_hash; my $multi = $headers->to_hash(1); Turn headers into hash reference, nested array references to represent multi line values are disabled by default. "to_string" my $string = $headers->to_string; Turn headers into a string, suitable for HTTP 1.1 messages. "trailer" my $trailer = $headers->trailer; $headers = $headers->trailer('X-Foo'); Shortcut for the "Trailer" header. "transfer_encoding" my $transfer_encoding = $headers->transfer_encoding; $headers = $headers->transfer_encoding('chunked'); Shortcut for the "Transfer-Encoding" header. "upgrade" my $upgrade = $headers->upgrade; $headers = $headers->upgrade('websocket'); Shortcut for the "Upgrade" header. "user_agent" my $user_agent = $headers->user_agent; $headers = $headers->user_agent('Mojo/1.0'); Shortcut for the "User-Agent" header. "www_authenticate" my $authenticate = $headers->www_authenticate; $headers = $headers->www_authenticate('Basic realm="realm"'); Shortcut for the "WWW-Authenticate" header. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Headers(3pm)
All times are GMT -4. The time now is 10:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy