Hi CLX, here is the script.
the previous error was due to $i=$i+1. But i've removed it.
However i'm not getting the result in f2.txt. all the lines in f2.txt are filled by @example.com
instead of something like DB1@example.com
Last edited by rbatte1; 07-24-2014 at 09:40 AM..
Reason: Changed main block in ICODE tags to just CODE tags and remived e-mail tag.
Hi Friends,
I have a requirement
I need to concatenate the below two strings.
String 1 = /@jobid_at_
String 2 = value stored in ORACLE_SID
String 3 = string1 concatenated with String 2.
Please let me know how should i do it in UNIX.
Thanks, (2 Replies)
Hello friends!
Each line of my input file has this format:
word<TAB>tag1<blankspace>lemma<TAB>tag2<blankspace>lemma ... <TAB>tag3<blankspace>lemma
Of this file I need to eliminate all the repeated tags (of the same word) in a line, as in the example here below, but conserving both (all) the... (2 Replies)
if i use
echo "ravi"
echo "sankar"
it showing output
ravi
sankar
but i want output as ravi sankar
remember sankar should be in another echo statement only (2 Replies)
In any given file, wherever a certain data block exists I need to concatenate the values(text after each "=" sign) from that block. in that block. The block starts and ends with specific pattern, say BEGIN DS and END DS respectively. The block size may vary. A file will have multiple such blocks.... (12 Replies)
Hello!
Can anyone explain line 28 for me? I was thinking *a would be replaced by *b, but it actually appends *a to *b. I know it is related to pointer address, but could not figure it out by myself. Thanks a lot!
1 //Concatenate two strings
2
3 #include<stdio.h>
4 char *stradd (char *,... (5 Replies)
hi guys, I have this question. I am creating an script to that read a text file(.ini) with the list of the patterns to find for example:
EPMS_VO
EMPS_PARTS
Then it check if file have been delivered in a folder and process it with each pattern, but I am having problems concatenting the... (7 Replies)
Discussion started by: Danman
7 Replies
LEARN ABOUT DEBIAN
mojo::upload
Mojo::Upload(3pm) User Contributed Perl Documentation Mojo::Upload(3pm)NAME
Mojo::Upload - Upload container
SYNOPSIS
use Mojo::Upload;
my $upload = Mojo::Upload->new;
say $upload->filename;
$upload->move_to('/home/sri/foo.txt');
DESCRIPTION
Mojo::Upload is a container for uploads.
ATTRIBUTES
Mojo::Upload implements the following attributes.
"asset"
my $asset = $upload->asset;
$upload = $upload->asset(Mojo::Asset::File->new);
Asset containing the uploaded data, defaults to a Mojo::Asset::File object.
"filename"
my $filename = $upload->filename;
$upload = $upload->filename('foo.txt');
Name of the uploaded file.
"headers"
my $headers = $upload->headers;
$upload = $upload->headers(Mojo::Headers->new);
Headers for upload, defaults to a Mojo::Headers object.
"name"
my $name = $upload->name;
$upload = $upload->name('foo');
Name of the upload.
METHODS
Mojo::Upload inherits all methods from Mojo::Base and implements the following new ones.
"move_to"
$upload->move_to('/home/sri/foo.txt');
Alias for "move_to" in Mojo::Asset::File.
"size"
my $size = $upload->size;
Alias for "size" in Mojo::Asset::File.
"slurp"
my $string = $upload->slurp;
Alias for "slurp" in Mojo::Asset::File.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Upload(3pm)