Considering Scrutinizer's note on single quotes vs. double quotes when defining the variable, you can use your temp definition together with his second example by adding gsub ("\$", "", values); :
I have been a student at Hendrix Institute for about a year now. My term is comming to an end by the end of december. I have learned varios computer programs for web development that include Flash 5 and Dreamweaver. Actionscripting, Javascript and Database development with Access was all... (4 Replies)
Hi all,
Have two SCO 5.0.5 systems and one Slackware(joy?) system.
I've been asked to backup all three systems onto a newly acquired AIT Tape drive that we've installed on one of the SCO boxes.
Using the existing cpio backup script on the one SCO works a treat and is really fast (which is... (2 Replies)
The current backup procedure we using a tar command in linux.
The files are stored in one partition in different folders. The docs stores in day wise folders like ex: /usr/data/xyz/20050129, /usr/data/xyz/20050130 .............etc
We using tar & gzip command to take backup everyday. The backup... (3 Replies)
We run WebSphere and by default it wants to install everything under /usr. While I can understand the default (everyone has a /usr) I would like to move this over to a dedicated volume group called apps and then setup my lv's and fs's here. Our WebSphere Admin doesn't like this because apparently... (1 Reply)
A few weeks ago at the recommendation of people I trust, I bought and started reading Kernighan and Ritchie's (K&R) C Programming Language. For one thing, it's damn thin compared to the O'Reilly Practical C I just finished last month. It covers generally the same stuff but in a much more... (9 Replies)
Hello all,
Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val:
> cat getnon0file.sh
#!/bin/bash
this="getnon0file.sh"
USAGE=$this"
InFile="xyz.38"
Min="0.05"
#
awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Hello there....i am a final year comp science student.......i am thinking of doing my project on unix platform......which one do u suggest?thanx in advance... (3 Replies)
I've been busy and fell behind on Sun/Oracle. Forgive me if too basic. I welcome brief, cryptic, or advanced replies. I also welcome noobie information since I may have no clue what's up at the moment.
Problem statement:
I inherited a computer to set up. I would rather not figure out 8 months... (1 Reply)
Hi guys, i'm undergoing a traning in solaris administration and i request if any one have an idea on the interview questions on solaris.
thank you. (3 Replies)
Hi all
I need to put a command line parser together to parse numeric fields and ranges passed to a script. I'm looking for a bash function that is as elegant and simple as possible.
So the input would be of the following form -
1,2,8-12
This would return -
1,2,8,9,10,11,12
Input can... (7 Replies)
Discussion started by: steadyonabix
7 Replies
LEARN ABOUT SUSE
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(8) support in Linux. You can use sysctl(8) 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)