How to pass two words within double quotes as variable?
Hi All,
OS - Suse 10
ksh --version
version sh (AT&T Research) 93s+ 2008-01-31
I am passing two words within double quotes ("Application Developer") to script as variable, but script is adding two single quotes between two words like ("Application' 'Developer").
below is simple test script which is part of a bigger script.
dummy.ksh
===========
===========
When I ran script in debug mode, I can see echo is returning (echo "Application' 'Developer"), what echo is returning is what getting passed to another script but without two single quotes arourd double quotes..
I tried different ways what were suggested in several forums, but didn't help me, any idea how can
Thanks in advance
srimitta
Last edited by bartus11; 05-13-2014 at 09:28 AM..
Reason: Please use [code][/code] tags.
This is a totally dumb newbie question, but I have not been able to find t he answer in the BASH book or online.
I am trying pass a double quoted variable to the command line.
variable = "-b \"dc=example,dc=com\""
When I run sh -x the variable comes out as '-b "dc=example,dc=com"' is... (4 Replies)
Hi,
I'm making progress on this but hung up on one last detail. I'd like to use AWK to pass the system date and time(among other things) to the first line of a file.
Here's what I have:
BEGIN {TOTALPP = 0;FREEPP=0;USEDPP=0;print "LPAR NAME:",lpar,"DATE:",tdate }
I call AWK with the... (4 Replies)
Hi,
I am generating html code using cshell, but i am having one problem while printing double quotes,
I need to write following code in file. where $var contains list of web address
<a href="$var">$var</a>
So i am using
echo "<a href="$var">$var</a>" > file.html
But with this " in... (4 Replies)
In a bash script, I need to pass a parameter that has space in-between using double quotes as follows:
CMD="SomeExecutable"
# Parameter that has a space in-between
PARAM1="TIMO 2"
CMD_IN="--name=\"$PARAM1\""
CMD_OUT=`$CMD $CMD_IN`
expected/required command execution:... (4 Replies)
My input is like this:
this is a test line.
I want my output to be like this:
"this", "is", "a", "test", "line"
Any idea how this can be done in Linux? (3 Replies)
Hi i have to insert the below line into a specific line number of another file
export MBR_CNT_PRCP_TYPE_CODES_DEL="'01','02','04','05','49','55','UNK'"
I have passed the above line to a variable say ins_line. I have used below command to perform the insert
awk 'NR==3{print "'"${ins_line}"'"}1'... (1 Reply)
Hi All,
I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes.
Sample Data :
"221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
Hi,
I have a text file with different results and I would like to add single quotes to the value after the given pattern '='
This would be the original text file:
user_id=7492 and key=clickid;
user_id=7867 and key=clickid;
user_id=8649 and key=clickid;
And I would like the output to be... (9 Replies)
Hi got this issue and was wondering if someone could please help out ?
var='." "'
echo $var
." "
I 'll get ." " and not ." with 10 spaces in between "
Thanks (3 Replies)
Discussion started by: stinkefisch
3 Replies
LEARN ABOUT DEBIAN
cgi::application::plugin::dbiprofile::graph::html
CGI::Application::Plugin::DBIProfile::Graph::HTML(3pm) User Contributed Perl Documentation CGI::Application::Plugin::DBIProfile::Graph::HTML(3pm)NAME
CGI::Application::Plugin::DBIProfile::Graph::HTML - VERY basic pure html vertical bar graphing for CAP:DBIProfile.
SYNOPSIS
# in httpd.conf
SetVar CAP_DBIPROFILE_GRAPHMODULE CGI::Application::Plugin::DBIProfile::Graph::HTML
PerlSetVar CAP_DBIPROFILE_GRAPHMODULE CGI::Application::Plugin::DBIProfile::Graph::HTML
DESCRIPTION
This module is provided as a basic implementation of graphing for CAP:DBIProfile. It can be used as an example to develop other, more
sophisticated, graphing solutions.
GRAPH PLUGIN DEVELOPMENT
The graphing plugin must have a method called "build_graph", which must accept options as a hash.
It should return a scalar or scalar ref holding the HTML output needed to generate your graph.
The following options will be passed to the "build_graph" method:
self
The cgiapp object.
mode_param
$self->mode_param - the runmode variable used to determine runmode (useful for creating links back to ourselves).
title
A textual title for your graph. You don't have to use this, but is there if you want it.
ylabel
Label for values we're graphing. Either "Count" or "Seconds".
data
An array of the datapoints to graph.
tags
Labels for each datapoint which match the labels that will be used on the sql statement list (1 to however many items there are).
The easiest graphs to implement are fully inline - ie. it doesn't need to make any external calls (no <image> or <embed> tags and such).
CGI::Application::Plugin::DBIProfile::Graph::HTML is an example of this. Other possible candidates are Plotr and Open Flash Chart (using js
interface to populate data).
Another inline solution is to use the <img src="data:uri"> scheme. An example of this can be found in
CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline. Please note, this isn't supported under MSIE.
In order to generate a graph that isn't inline, you'll need to pass the data to be graphed with your call to the external object. For
example, if you want to use GDGraph, you could create a separate cgi script that returns graphs based on params passed to it, and return an
approapriate image tag to from your graphing module. For example:
<img src="/cgi-bin/graph.pl?data=20,14,42&tags=1,2,3">
Another way, would be to add a runmode in a CGI::Application "init" hook, and pass that runmode in a link back to the same script, and
include your graph module in our script with a use statement. An example of this can be found in
CGI::Application::Plugin::DBIProfile::Graph::SVGTT.
REQUIREMENTS
L<HTML::Template>
SEE ALSO
L<CGI::Application::Plugin::DBIProfile>
L<CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline>
L<CGI::Application::Plugin::DBIProfile::Graph::SVGTT>
AUTHOR
Joshua I Miller, L<unrtst@cpan.org>
COPYRIGHT & LICENSE
Copyright 2007 Joshua Miller, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2011-11-10 CGI::Application::Plugin::DBIProfile::Graph::HTML(3pm)