07-14-2009
Initially assign some values to variable "a" and "b" as
a=10 <sample_data>
b=11 <sample_data> Then check
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I login to my AIX server, the LANG variable is automatically being set to En_US. This is causing locale warning messages when I run emacs or perl. The reason seems to be that En_US is not a valid locale (seen by running locale -a).
I can change the variable from the command line (export... (3 Replies)
Discussion started by: wvdeijk
3 Replies
2. UNIX for Dummies Questions & Answers
I'm having an issue when I export within my program. I'm getting the variable name, not the variable value. I have a configuration file (config.txt) that has the values of the variables set as so:
set -a
export ARCHIVEPOSourceDir="/interfaces/po/log /interfaces/po/data"
export... (2 Replies)
Discussion started by: ParNone
2 Replies
3. Shell Programming and Scripting
okay, this shouldn't be difficult but I can't figure it out. How can I set a variable with another variable. I have the following:
foreach pe ($dir $sp)
set tpe = `echo $pe | grep M`
if ($tpe == M) then
set ${$pe} = M <--- This doesn't work
else
endif
end
In this case what... (2 Replies)
Discussion started by: wxornot
2 Replies
4. Solaris
I am working with solaris 9 sunBlade150 Box.
I Installed a program, need to set the environment variable so that when the executable is entered,it finds the path to the executable.
The documentation for the software says: Set the appropriate environment variable:
Connect to server failed;... (8 Replies)
Discussion started by: smartgupta
8 Replies
5. Shell Programming and Scripting
Do not know how to do this, any help would be appreciated:
I have a file that comes in called xxxx.txt. I have a script that does some messing around with the file.
The file needs to go out as PAB108XXXX.csv
The four x's above will be a number that changes everytime the script is ran e.g.... (1 Reply)
Discussion started by: Pablo_beezo
1 Replies
6. Shell Programming and Scripting
Dear All,
Can anyone advise why this script isn't run as expected?
===========================
status=0
cat /etc/passwd |
while read line; do
status=1
done
echo $status
===========================
it always return 0 , but not 1. why?
anything wrong?
Thanks. (1 Reply)
Discussion started by: tiger2000
1 Replies
7. HP-UX
Hi,
I am using hp unix
i want to know the use of the following commands
set --
set - variable
thanks (4 Replies)
Discussion started by: gomathi
4 Replies
8. Shell Programming and Scripting
hi,
i'm not a root user and i want to know which user and in which file is loaded a variable seen in the "env" display ?
I will use this variable but i want to be sure that it will be a permanent variable !
i don't see it in my files (.profile , kshrc...) and neither in /etc/profile.
... (3 Replies)
Discussion started by: Nicol
3 Replies
9. Shell Programming and Scripting
greetings,
i have a variable $input that i want to use to set $output. $input is /dir/filename.mph and $input is passed to my script that i manipulate it as follows:
input=`basename $input`i want the $output to be filename_solved.mph, basically stuffing "_solved" in the filename. here's how i... (2 Replies)
Discussion started by: crimso
2 Replies
10. Linux
Hi all,
I used to set variable by read from keyboard
read -p 'Input new value for variable :' var
Now I want to pipe from ls and set to var
a.txt b.txt c.txt
ls | grep a.txt | read var
why this cannot set the $var.
What is the different between them....:wall: (4 Replies)
Discussion started by: mainsun
4 Replies
LEARN ABOUT FREEBSD
indxbib
INDXBIB(1) General Commands Manual INDXBIB(1)
NAME
indxbib - make inverted index for bibliographic databases
SYNOPSIS
indxbib [ -vw ] [ -cfile ] [ -ddir ] [ -ffile ] [ -hn ] [ -istring ] [ -kn ] [ -ln ] [ -nn ] [ -ofile ] [ -tn ] [ filename... ]
It is possible to have whitespace between a command line option and its parameter.
DESCRIPTION
indxbib makes an inverted index for the bibliographic databases in filename... for use with refer(1), lookbib(1), and lkbib(1). The index
will be named filename.i; the index is written to a temporary file which is then renamed to this. If no filenames are given on the command
line because the -f option has been used, and no -o option is given, the index will be named Ind.i.
Bibliographic databases are divided into records by blank lines. Within a record, each fields starts with a % character at the beginning
of a line. Fields have a one letter name which follows the % character.
The values set by the -c, -n, -l and -t options are stored in the index; when the index is searched, keys will be discarded and truncated
in a manner appropriate to these options; the original keys will be used for verifying that any record found using the index actually con-
tains the keys. This means that a user of an index need not know whether these options were used in the creation of the index, provided
that not all the keys to be searched for would have been discarded during indexing and that the user supplies at least the part of each key
that would have remained after being truncated during indexing. The value set by the -i option is also stored in the index and will be
used in verifying records found using the index.
OPTIONS
-v Print the version number.
-w Index whole files. Each file is a separate record.
-cfile Read the list of common words from file instead of /usr/share/dict/eign.
-ddir Use dir as the pathname of the current working directory to store in the index, instead of the path printed by pwd(1). Usually dir
will be a symbolic link that points to the directory printed by pwd(1).
-ffile Read the files to be indexed from file. If file is -, files will be read from the standard input. The -f option can be given at
most once.
-istring
Don't index the contents of fields whose names are in string. Initially string is XYZ.
-hn Use the first prime greater than or equal to n for the size of the hash table. Larger values of n will usually make searching
faster, but will make the index larger and indxbib use more memory. Initially n is 997.
-kn Use at most n keys per input record. Initially n is 100.
-ln Discard keys that are shorter than n. Initially n is 3.
-nn Discard the n most common words. Initially n is 100.
-obasename
The index should be named basename.i.
-tn Truncate keys to n. Initially n is 6.
FILES
filename.i Index.
Ind.i Default index name.
/usr/share/dict/eign
List of common words.
indxbibXXXXXX Temporary file.
SEE ALSO
refer(1), lkbib(1), lookbib(1)
Groff Version 1.19.2 23 March 2013 INDXBIB(1)