Sponsored Content
Top Forums Shell Programming and Scripting How to pass two words within double quotes as variable? Post 302901311 by Makarand Dodmis on Tuesday 13th of May 2014 08:31:41 AM
Old 05-13-2014
try
Code:
[Makarand] # cat dummy.sh
#!/usr/bin/ksh
#
title="Application Developer"
echo "$title"
[Makarand] # ./dummy.sh
+ title=Application Developer
+ echo Application Developer
Application Developer

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Double Quotes within a variable

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)
Discussion started by: burton_1080
4 Replies

2. AIX

how to pass variables surrounded in double quotes to awk?

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)
Discussion started by: cruiser
4 Replies

3. Shell Programming and Scripting

Using echo to print double quotes along with variable substitution

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)
Discussion started by: sarbjit
4 Replies

4. Shell Programming and Scripting

How to pass a parameter with double quotes around it to a command

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)
Discussion started by: Timo
4 Replies

5. Shell Programming and Scripting

Enclose words between double quotes

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)
Discussion started by: shoaibjameel123
3 Replies

6. UNIX for Dummies Questions & Answers

awk for inserting a variable containing single and double quotes

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)
Discussion started by: sathishteradata
1 Replies

7. Shell Programming and Scripting

Double quotes and variable proble in echo

HI Guys, I want to echo below line in my file :- lpd | grep AL | nawk '{print "1dLA - " $0} How can i echo same Output (4 Replies)
Discussion started by: pareshkp
4 Replies

8. Shell Programming and Scripting

Replace Double quotes within double quotes in a column with space while loading a CSV file

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)
Discussion started by: mlavanya
6 Replies

9. Shell Programming and Scripting

Add double quotes to the words after given pattern

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)
Discussion started by: mac-arrow
9 Replies

10. Shell Programming and Scripting

Spaces in double quotes in variable ?

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
CGI
::Application::Plugin::DBIProfile::Graph::GDGraphInliUserpContributed Perl DocumCGI::Application::Plugin::DBIProfile::Graph::GDGraphInline(3pm) NAME
CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline - Inlined GD Graph output for CAP:DBIProfile. SYNOPSIS
# in httpd.conf SetVar CAP_DBIPROFILE_GRAPHMODULE CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline PerlSetVar CAP_DBIPROFILE_GRAPHMODULE CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline DESCRIPTION
This module provides a GD::Graph::bars inlined graphing option for CAP:DBIProfile. Please note, inlined images are NOT supported by MSIE as of version 7. Mozilla, Firefox, Opera, Safari, and Konqueror are supported. The following settings control the output: $CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline::FORMAT Output format. Defaults to "png". One of "png", "gif", or "jpeg". Any GD supported output format can be easily added. $CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline::WIDTH Width of output image. If you have problems with browser support for large inline images, reduce this. $CGI::Application::Plugin::DBIProfile::Graph::GDGraphInline::HEIGHT Height of output image. If you have problems with browser support for large inline images, reduce this. BUGS
Microsoft Internet Explorer, as of versions 6 and 7, lacks support for the "data: URI scheme", and thus lacks support for inline images. Inline images max size is limited to the browsers max URI length. For example, on Opera, this used to be 4kb. If you hit this limit, you can change the size of the output to try to compensate. REQUIREMENTS
GD::Graph MIME::Base64 SEE ALSO
CGI::Application::Plugin::DBIProfile CGI::Application::Plugin::DBIProfile::Graph::HTML 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::GDGraphInline(3pm)
All times are GMT -4. The time now is 04:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy