Sponsored Content
Full Discussion: echo using single quotes
Top Forums Shell Programming and Scripting echo using single quotes Post 302142452 by chella on Friday 26th of October 2007 08:48:11 AM
Old 10-26-2007
echo using single quotes

Hi,

Please help me to echo the following statement using single quotes

Why can't I write 's between single quotes

Thanks in advance,
Chella
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Double quotes or single quotes when using ssh?

I'm not very familiar with the ssh command. When I tried to set a variable and then echo its value on a remote machine via ssh, I found a problem. For example, $ ITSME=itsme $ ssh xxx.xxxx.xxx.xxx "ITSME=itsyou; echo $ITSME" itsme $ ssh xxx.xxxx.xxx.xxx 'ITSME=itsyou; echo $ITSME' itsyou $... (3 Replies)
Discussion started by: password636
3 Replies

2. Shell Programming and Scripting

echo is striping mah quotes

As the title says, echo is striping my quotes and I need them. echo "<?xml version="1.0" encoding="ISO-8859-1"?>" returns: <?xml version=1.0 encoding=ISO-8859-1?> Obviously, echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" returns the result I need: <?xml version="1.0"... (3 Replies)
Discussion started by: s_becker
3 Replies

3. Shell Programming and Scripting

Single quotes and double quotes

Hi guys, I have a sed line in double quotes which works fine, but I want it to be in single quotes here is the sed line sed "/abc_def/s/\'.*\'/\'\${abc_def}\'/" can some one give the equivalent to the above script in single quotes Thanks a ton (5 Replies)
Discussion started by: sol_nov
5 Replies

4. Shell Programming and Scripting

Perl echo with double quotes

I need to echo a string that has double quotes in a Perl script. #!/usr/bin/env perl `echo Rule123 -comment \"blah blah\" >> $filename` I'd like to get below appended to $filename: Rule 123 -comment "blah blah" But instead, the double quotes are lost: Rule 123 -comment blah bah ... (1 Reply)
Discussion started by: slchin
1 Replies

5. Shell Programming and Scripting

problem with echo inserting single quotes

Consider the following script: #!/bin/bash exclude='Archive PST,SystemState' IFS=$"," rsyncExclusions=$(for exclude in ${exclude}; do echo -n -e --exclude=\"${exclude}\"\ ; done) unset IFS echo rsync $rsyncExclusions test rsync -avh --delete --delete-excluded "$rsyncExclusions"... (7 Replies)
Discussion started by: jelloir
7 Replies

6. UNIX for Dummies Questions & Answers

grep single quotes or double quotes

Unix superusers, I am new to unix but would like to learn more about grep. I am very familiar with regular expressions as i have used them for searching text files in windows based text editors. Since I am not very familiar with Unix, I dont understand when one should use GREP with the... (2 Replies)
Discussion started by: george_vandelet
2 Replies

7. Shell Programming and Scripting

Replace single quote with two single quotes in perl

Hi I want to replace single quote with two single quotes in a perl string. If the string is <It's Simpson's book> It should become <It''s Simpson''s book> (3 Replies)
Discussion started by: DushyantG
3 Replies

8. Shell Programming and Scripting

Having a terrible problem with quotes/single quotes!

Hello. I'm trying to write a bash script that uses GNU screen and have hit a brick wall that has cost me many hours... (I'm sure it has something to do with quoting/globbing, which is why I post it here) I can make a script that does the following just fine: test.sh: #!/bin/bash # make... (2 Replies)
Discussion started by: jondecker76
2 Replies

9. Shell Programming and Scripting

Unable to echo single quotes inside awk

# echo 'export HISTFILE=/var/log/history/history_$(uname -n)_$(date +%Y:%b:%d:%H:%M)_$(who am i | awk '{print \$1}')' >> new_file # # cat new_file export HISTFILE=/var/log/history/history_$(uname -n)_$(date +%Y:%b:%d:%H:%M)_$(who am i | awk {print $1}) # Now how to echo the quotes around the... (2 Replies)
Discussion started by: proactiveaditya
2 Replies

10. Shell Programming and Scripting

Issue with Single Quotes and Double Quotes for prompt PS1

Hi, Trying to change the prompt. I have the following code. export PS1=' <${USER}@`hostname -s`>$ ' The hostname is not displayed <abc@`hostname -s`>$ uname -a AIX xyz 1 6 00F736154C00 <adcwl4h@`hostname -s`>$ If I use double quotes, then the hostname is printed properly but... (3 Replies)
Discussion started by: bobbygsk
3 Replies
rndc.conf(4)						     Kernel Interfaces Manual						      rndc.conf(4)

NAME
rndc.conf - rndc configuration file DESCRIPTION
is the configuration file for the BIND 9 name server control utility. This file has a structure and syntax similar to the configuration file, The standard (default) configuration file is located at The standard (default) configuration file is located at Syntax The syntax of the file is much simpler than that of the configuration file. It includes three statements and optional comments. Statement blocks are enclosed in braces and terminated with a semicolon. Clauses in the statements are also semicolon-terminated. A servername or keyname must be quoted using double quotes if it matches a keyword, such as having a key named . The options Statement The statement specifies the default server and key definition for the configuration. The clause specifies the default server on which runs, if the server is not specified with the option in the command. defserver is the name or IP address of a name server that is specified in a statement. The clause specifies the default key that will authenticate the server's commands and responses if a key is not specified with the option in the command. defkey is the name of a key that is specified in a statement. The server Statement The statement specifies the servername of a name server, as a host name or an IP address. The clause specifies a keyname that matches a keyname in a statement. Multiple statements are permitted. The key Statement The statement specifies the name, keyname, and definition of a key. The clause identifies the encryption algorithm, algoname. Currently only is supported. The clause contains the random key, secretvalue, that will be used for authentication. It is base-64-encoded, using the algorithm speci- fied in the clause. secretvalue is enclosed in double quotes. The BIND 9 program can be used to generate the secretvalue. Multiple statements are permitted. Comments The following comment styles are supported: C: C++: UNIX: Name Server Configuration The name server must be configured to accept connections and to recognize the key specified in the file, using the statement in WARNINGS
Currently, there is no way to specify the port on which must run. EXAMPLES
Example 1 Here is a sample file: In this example, will, by default, use the server at (127.0.0.1) and the key named Commands directed to the server will use the key. The statement indicates that uses the HMAC-MD5 algorithm and its clause contains the base-64 encoding of the HMAC-MD5 secret enclosed in double quotes. Example 2 To generate a random secretvalue with the command (see rndc-confgen(1)): A complete file, including the randomly generated key, is written to standard output. Commented-out and statements for are also written. Example 3 To generate the secretvalue with the command (see dnssec-keygen(1)): The base-64 secretvalue will appear in two files, and After you copy the secretvalue into statements in the and files, you can delete the and files. AUTHOR
was developed by the Internet Systems Consortium (ISC). SEE ALSO
dnssec-keygen(1), rndc(1), rndc-confgen(1), named(1M). available online at available from the Internet Systems Consortium at BIND 9.3 rndc.conf(4)
All times are GMT -4. The time now is 12:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy