04-02-2019
Thanks..That was just an example i gave. so stopped at B3. the html part is the below e.g. mentioned.
i am new to bash and searching for help but not able to figure it out
Last edited by Snehasish; 04-02-2019 at 12:30 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i need to seperate values seperated by delimiters and assign it to an array.. can u plz help me on that.
Variables = "asd,rgbh,(,rty,got,),sroe,9034,"
i need to assign the variables into arrays..
like..
var=asd
var=rgbh.. and so on
how do i do this. i need to reuse the values stored in... (6 Replies)
Discussion started by: Syms
6 Replies
2. Shell Programming and Scripting
Dear All,
I have a command which gives the number of fields of each line of a comma-separated file.
sthng like this :
cat QDB_20071126_002.bad | awk -F"," '{ print NF }'
I need to assign the first output and the last output of the above command to variables in a script.
Need help to do... (4 Replies)
Discussion started by: KrishnaSaran
4 Replies
3. Shell Programming and Scripting
Hi,
I have a file like the following...
CUST=
DIR=
NULIST=
name=philps_123
How can i add values to each of these unassigned variables using a shell script?
say for eg: i have values for CUST as onida, dir as /dir/onida, NULIST as /tmp/onida_files. How can i add these values to... (11 Replies)
Discussion started by: Tuxidow
11 Replies
4. Shell Programming and Scripting
Hi Masters,
I want to assign the values of one variable to another variable.
Here the varaible name 'var' is dynamic. I know the values of V_2 and U_3, but
If the i/p of TYPE is 'U' and the NO is 3, then I want to assign the values of
U_3 to var.
How we can achieve it?
TYPE="U"... (4 Replies)
Discussion started by: ecearund
4 Replies
5. Programming
Hi guys.
I have a header file including a structure like this:
typedef struct
{
int index = -1;
stack_node *head;
} stack;
But when compiling with cc it shows error at the assignment line (int index = -1):
error: expected ‘:', ‘,', ‘;', ‘}' or ‘__attribute__' before ‘=' token... (1 Reply)
Discussion started by: majid.merkava
1 Replies
6. UNIX for Dummies Questions & Answers
Hi i have one variable like DIR="f1 f2" in config file
in my script i have one runtime variable LFILE="DIR"
now i want to use $DIR in my script by using LFILE that is i dont want to use DIR dirctly i am extracting DIR by some other means.
Config file : DIR="f1 f2"
Script:
LFILE="DIR"
i... (3 Replies)
Discussion started by: sriram_gec
3 Replies
7. Shell Programming and Scripting
Hello,
I need help with my script that will send email via sendmail command that will shows both the header and footer logo once the recepient receive the email (e.g. MS Outlook). When I tested to ran the script it will successfully send the email BUT UNFORTUNATELY it doesn't displayed the... (8 Replies)
Discussion started by: lawrence88
8 Replies
8. Shell Programming and Scripting
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Discussion started by: ketanraut
7 Replies
9. Shell Programming and Scripting
so i've been used to doing it this way:
SVAL=$(echo "7 3 2 38 3" | awk '{print $2}')
4VAL=$(echo "4:21:N:3" | awk -F":" '{print $4}')
I know there's a way to do it by putting the value in an array and assigning it that way. but i'm not sure how to do it efficiently. any ideas? i dont... (9 Replies)
Discussion started by: SkySmart
9 Replies
10. Shell Programming and Scripting
i have a program that spits out a certain number of values. i dont know the number of values. they can be 4, 10, 7, 20, no idea.
but, i want to be able to assign each of the value returned by this program to a variable.
in the latest instance, the program gave the following 6 values:
4... (8 Replies)
Discussion started by: SkySmart
8 Replies
LEARN ABOUT DEBIAN
courriel::header
Courriel::Header(3pm) User Contributed Perl Documentation Courriel::Header(3pm)
NAME
Courriel::Header - A single header's name and value
VERSION
version 0.29
SYNOPSIS
my $subject = $headers->get('subject');
print $subject->value();
DESCRIPTION
This class represents a single header, which consists of a name and value.
API
This class supports the following methods:
Courriel::Header->new( ... )
This method requires two attributes, "name" and "value". Both must be strings. The "name" cannot be empty, but the "value" can.
$header->name()
The header name as passed to the constructor.
$header->value()
The header value as passed to the constructor.
$header->as_string( charset => $charset )
Returns the header name and value with any necessary MIME encoding and folding.
The "charset" parameter specifies what character set to use for MIME-encoding non-ASCII values. This defaults to "utf8". The charset name
must be one recognized by the Encode module.
$header->stream_to( output => $output, charset => ... )
This method will send the stringified header to the specified output. The output can be a subroutine reference, a filehandle, or an object
with a "print()" method. The output may be sent as a single string, as a list of strings, or via multiple calls to the output.
See the "as_string()" method for documentation on the "charset" parameter.
ROLES
This class does the "Courriel::Role::Streams" role.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
perl v5.14.2 2012-03-07 Courriel::Header(3pm)