You can also use single quotes in the html string:
I Know it's not precisely what you asked for but it's correctly interpreted by the browsers.
What seems me strange is the backslashes. should the syntax not be :
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 have a perl script which generates an LDAP report in CSV Format.
Issue: Some of attribute values has double-quotes as fed by users. I dont want to print those double-quotes while printing the attribute values.
Please let us know how I can overcome this issue.
Thank You.
... (2 Replies)
Hi All,
I have multiple lines in a file like:-
"abc" def "ghi" jkl "mno" 1
I want to print in output:-
abc/ghi/mno 1
How can I do this in perl?
Regrds,
Nilabh
-----Post Update-----
Additional info:-
The last field of the file should be output as it is.In the above example 1 is... (6 Replies)
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)
Hi All,
I'm trying to run a similar script to copy a files from one location to another.
#!/bin/bash
source="/home/pradeepk/a.txt"
destination="/home/pradeepk/dir1"
cp $source $destinationi'm getting following error.
cp: cannot stat `/home/pradeepk/a.txt\r': No such file or directorywhen... (1 Reply)
Hi ,
I have a script to update firefox proxy. But the echo is not updating the double quotes.
paste /home/names.txt /home/ip.txt | while read i j
do
mkdir $i
echo "user_pref("network.proxy.http", "$j");" >> /home/$i/prefs.js
echo "user_pref("network.proxy.http_port", 8080);" >>... (3 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)
Please help me to use echo or printf type of command to print some value from variable within double quotes - I want to print the double quote ( " ") also.
I tried
#!/bin/bash
VALUE=some_value
echo '{"value" : "$VALUE"}'
I was expecting the above script would produce ..
{"value" :... (3 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 LINUX
sysctl
SYSCTL(8)SYSCTL(8)NAME
sysctl - configure kernel parameters at runtime
SYNOPSIS
sysctl [-n] [-e] variable ...
sysctl [-n] [-e] [-q] -w variable=value ...
sysctl [-n] [-e] [-q] -p [filename]
sysctl [-n] [-e] -a
sysctl [-n] [-e] -A
DESCRIPTION
sysctl is used to modify kernel parameters at runtime. The parameters available are those listed under /proc/sys/. Procfs is required for
sysctl support in Linux. You can use sysctl to both read and write sysctl data.
PARAMETERS
variable
The name of a key to read from. An example is kernel.ostype. The '/' separator is also accepted in place of a '.'.
variable=value
To set a key, use the form variable=value where variable is the key and value is the value to set it to. If the value contains
quotes or characters which are parsed by the shell, you may need to enclose the value in double quotes. This requires the -w param-
eter to use.
-n Use this option to disable printing of the key name when printing values.
-e Use this option to ignore errors about unknown keys.
-N Use this option to only print the names. It may be useful with shells that have programmable completion.
-q Use this option to not display the values set to stdout.
-w Use this option when you want to change a sysctl setting.
-p Load in sysctl settings from the file specified or /etc/sysctl.conf if none given. Specifying - as filename means reading data from
standard input.
-a Display all values currently available.
-A Display all values currently available in table form.
EXAMPLES
/sbin/sysctl -a
/sbin/sysctl -n kernel.hostname
/sbin/sysctl -w kernel.domainname="example.com"
/sbin/sysctl -p /etc/sysctl.conf
FILES
/proc/sys
/etc/sysctl.conf
SEE ALSO sysctl.conf(5)BUGS
The -A parameter behaves just as -a does.
AUTHOR
George Staikos, <staikos@0wned.org>
21 Sep 1999 SYSCTL(8)