06-06-2008
echo $var | tr a z | tr b a | tr z b
more info: man tr
we use z as temporary placeholder as we can only transform one character a time
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to read character by character using awk (6 Replies)
Discussion started by: karnan
6 Replies
2. AIX
i am a newbie to shell script,so i want a kshell script in which i need to check for a particular character inside a file through conditional looping(like if ,case,while)and if that character exists ,then substitute a given character to that character.
consider a file test.txt,inside the file... (1 Reply)
Discussion started by: karthikprasathk
1 Replies
3. Shell Programming and Scripting
How...
can I read input by a user character by cahracter. And assign each character from the string to a variable?
Any help would be greatly appreciated!
Thank you! (1 Reply)
Discussion started by: Tek-E
1 Replies
4. 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
5. 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
6. Shell Programming and Scripting
Hi All,
I have a big log file i want to delete all characters (between 350th to 450th characters) starting at 350th character position to 450th character position.
please advice or sample code. (6 Replies)
Discussion started by: rajeshorpu
6 Replies
7. 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
8. Shell Programming and Scripting
Hi ,
I have input file like below
Hi this is "vinoth".
Hi happy to work with 'unix'
USA(united states of America)
My script variables are below :
Dquote=Ộ
Squote=&#$567
Obrac=&^986
Cbrac=&^745
I want to read the variables in my SED command to replace the double quote,single... (9 Replies)
Discussion started by: vinothsekark
9 Replies
9. Shell Programming and Scripting
Hello,
I do have folders containing having funny strings in their names and one space.
First, I do remove the funny strings and replace the space by an underscore.
find . -name '* *' | while read file;
do
target=`echo "$file" | sed 's/... (2 Replies)
Discussion started by: tempestas
2 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
KENV(1) BSD General Commands Manual KENV(1)
NAME
kenv -- dump or modify the kernel environment
SYNOPSIS
kenv [-hNq]
kenv [-qv] variable[=value]
kenv [-q] -u variable
DESCRIPTION
The kenv utility will dump the kernel environment if invoked without arguments. If the -h option is specified, it will limit the report to
kernel probe hints. If an optional variable name is specified, kenv will only report that value. If the -N option is specified, kenv will
only display variable names and not their values. If the -u option is specified, kenv will delete the given environment variable. If the
environment variable is followed by an optional value, kenv will set the environment variable to this value.
If the -q option is set, warnings normally printed as a result of being unable to perform the requested operation will be suppressed.
If the -v option is set, the variable name will be printed out for the environment variable in addition to the value when kenv is executed
with a variable name.
Variables can be added to the kernel environment using the /boot/loader.conf file, or also statically compiled into the kernel using the
statement
env filename
in the kernel config file. The file can contain lines of the form
name = value # this is a comment
where whitespace around name and '=', and everything after a '#' character, are ignored. Almost any printable character except '=' is
acceptable as part of a name. Quotes are optional and necessary only if the value contains whitespace.
SEE ALSO
kenv(2), config(5), loader.conf(5), loader(8)
HISTORY
The kenv utility appeared in FreeBSD 4.1.1.
BSD
May 11, 2012 BSD