In the shell, in commands have $variables in "quotes", otherwise the shell will get its contents and break it into words (and even try a glob-match with each word).
The echo command:
This User Gave Thanks to MadeInGermany For This Post:
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)
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)
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)
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)
In bash or perl, I would like to know how to substitute a null character (0x00) for every white space without changing the white spaces inside the block of double quotes and the white space immediately following a backslash.
Suppose that sample.txt consists of the following line.
"b 1" c\ 2
... (2 Replies)
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)
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... (4 Replies)
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
LEARN ABOUT DEBIAN
gpm.conf
GPM.CONF(5) BSD File Formats Manual GPM.CONF(5)NAME
gpm.conf -- startup configuration file for gpm
DESCRIPTION
gpm.conf specifies options to be passed to the gpm daemon at start time. It is parsed by the init script, rather than by gpm itself. It
comprises variable assignments in Bourne shell syntax: variable=value (with no extra spaces; to embed spaces or other shell metacharacters in
values, use quotes as in shell scripting). Blank lines and lines beginning with a hash ("#") are ignored.
Settings are implemented by setting flags on the gpm command line; these are documented in gpm(8). The following variable names are speci-
fied:
device Specifies the device file for your primary mouse. This sets -m.
type Specifies the protocol for your primary mouse. This sets -t.
device2, type2
The same as device and type, but for your secondary mouse. These set -m and -t after passing -M. If either of these are
defined, both must be.
responsiveness
Specifies the responsiveness for your primary mouse. This sets -r.
sample_rate Specifies the sample rate for your primary mouse. This sets -s.
repeat_type Enables the gpm repeater and sets the repeater protocol, using the -R flag. Repeat type none or an empty value will disable
the repeater.
append Any options specified here are appended to the gpm command line. If you use multiple options, you will need to enclose the
value in quotes ("").
EXAMPLES
A simple gpm.conf file for a PS/2 mouse whose protocol should be autodetected, and which should be repeated in /dev/gpmdata as a serial Mi-
crosoft Intellimouse:
# Sample gpm.conf
device=/dev/psaux
type=autops2
repeat_type=ms3
This will cause the daemon to be started as gpm -m /dev/psaux -t autops2 -Rms3.
FILES
/etc/gpm.conf
SEE ALSO gpm(8), dpkg-reconfigure(8). dpkg-reconfigure gpm can be used to generate and update the gpm.conf file automatically.
Debian 3.0 January 5, 2005 Debian 3.0