05-14-2011
Frans also introduced double quotes around the variable reference. You need those to preserve the space in the file name.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I need to read filenames with space in between in a for loop
like
Integration of utility projects
Integration of hdf projects
I copied these files from a windows system and as you know windows filename has spaces in between them.
But while unix is reading the filename in a for... (12 Replies)
Discussion started by: dayanandra
12 Replies
2. Shell Programming and Scripting
I posted a week ago regarding this scripting question, but I need to revisit and have a few more questions answered..
User cfajohnson was extremely helpful with the archive script, but clarification on my part is needed to help steer the answer in a direction that works in this particular... (5 Replies)
Discussion started by: fxvisions
5 Replies
3. Shell Programming and Scripting
How to read character by character using awk (6 Replies)
Discussion started by: karnan
6 Replies
4. UNIX for Dummies Questions & Answers
im having trouble doing this:
i have a variable with 2 characters repeating e.g. aababbbaaaababaabbaabbba
is there a way i can search the variable for a's and b's and then change a's to b's and b's to a's?
im guessing its like getting the 1's compliment of the string
im doing this in... (2 Replies)
Discussion started by: vipervenom25
2 Replies
5. Shell Programming and Scripting
Hi,
I need to move filenames with the following format below into filenames without the ~ like sample below. I hope you can help me create a simple unix script that will do this. Thanks in advance!
move filename from:
AIRS20081225-235641.BSP~
AIRS20081225-235648.BSP~
AIRS20081225-235640.BSP~... (3 Replies)
Discussion started by: ayhanne
3 Replies
6. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies
7. Shell Programming and Scripting
Hello all respected people,
Can i read a file character by character without using sed,awk and perl commands.
Thanks in advance. (4 Replies)
Discussion started by: murtaza
4 Replies
8. Shell Programming and Scripting
hello all
i request you to give the solution for the following problem..
I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print
g
go
goo
goog
googl
google
like this Using unix Shell scripting...
without using... (1 Reply)
Discussion started by: samupnl
1 Replies
9. Shell Programming and Scripting
Hi ,
My requirement is to scan a directory for file names with LTR.PDF*
and send those files via ftp to another server one by one.
Now the the problem is file names are like LTR.PDF ,LTR.PDF1 ,LTR.PDF2.....LTR.PDF10..upto 99
and these needs to be sent in sorted order.
is there a way to get... (10 Replies)
Discussion started by: nishantrk
10 Replies
10. Shell Programming and Scripting
Hi friend,
I have one file , and i want to read that file character by character.
I need this script in ksh.
while using read option with -n1 am getting error.
while read -n1 c read has bad option
And if i am using below script, then if in a line has space like this ( Pallvi mahajan)... (10 Replies)
Discussion started by: pallvi_mahajan
10 Replies
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)