hey people..
i have a configuration file that looks like
7080 7988
net04.xxxxx.edu
20
where 20 is the number of threads in the thread pool initially.
net04.xxxxx.edu is the hostname.
and 7080 7988
are two ports. first one for client requests and second one for dns communication. now my... (2 Replies)
Hello,
I have a cat.dat file, i would like shell to read each 3 lines and set this 3 lines to 3 different variables.
my cat.dat is:
11
12
+380486461001
12
13
+380486461002
13
14
+380486461003
i want shell to make a loop and assign 1st line to student_id, 2nd line to... (4 Replies)
The text file has one single row and looks like this
Q1 P1 2006
I have to pick up this values from a shell script into three different variables,
say quarter, period and year from the above text file. Some one know's how to do this? I went through 'sed', dint really know how to... (3 Replies)
Hi,
I have a file like the following...
CUST=
DIR=
NULIST=
name=philps_123
How can i add values to each of these unassigned variables using a shell script?
say for eg: i have values for CUST as onida, dir as /dir/onida, NULIST as /tmp/onida_files. How can i add these values to... (11 Replies)
For example, I have a file with below lines containing VOB tags and VOB paths.
* /vobs/fts/FTSUSM20_VOB /ccvobsslx01/projects/vobs/eml/FTSUSM20_VOB
* /vobs/fts/FTS20_VOB /ccvobsslx01/projects/vobs/eml/FTS20_VOB
* /vobs/pmv/PMS_VOB /ccvobsslx01/projects/vobs/cpm/_/PMS_VOB
*... (4 Replies)
Hi,
I have requirement to assign values to variables which are created dynamically.
Below is the code which i am using to achieve above requirement.
#!/bin/ksh
oIFS="$IFS"; IFS=','
STR_FAIL_PARENT_IF_FAILS="WF_F_P_IF_FAILS1,WF_F_P_IF_FAILS2,WF_F_P_IF_FAILS3"
set -A... (1 Reply)
I am trying to read a input file which has two columns separated by space
Input file
server1 server2
server3 server4
server5 server6
When i execute the below while code it reads line by line and a and b variables are able to successfully fetch the values
while read a b
do
echo "$a"
echo... (5 Replies)
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
so i've been used to doing it this way:
SVAL=$(echo "7 3 2 38 3" | awk '{print $2}')
4VAL=$(echo "4:21:N:3" | awk -F":" '{print $4}')
I know there's a way to do it by putting the value in an array and assigning it that way. but i'm not sure how to do it efficiently. any ideas? i dont... (9 Replies)
Discussion started by: SkySmart
9 Replies
LEARN ABOUT SUNOS
variables
environ(4) File Formats environ(4)NAME
environ, pref, variables - user-preference variables files for AT&T FACE
SYNOPSIS
$HOME/pref/.environ
$HOME/pref/.variables
$HOME/FILECABINET/.pref
$HOME/WASTEBASKET/.pref
DESCRIPTION
The .environ, .pref, and .variables files contain variables that indicate user preferences for a variety of operations. The .environ and
.variables files are located under the user's $HOME/pref directory. The .pref files are found under $HOME/FILECABINET, $HOME/WASTEBASKET,
and any directory where preferences were set via the organize command. Names and descriptions for each variable are presented below. Vari-
ables are listed one per line and are of the form variable=value.
.environ Variables
Variables found in .environ include:
LOGINWIN[1-4] Windows that are opened when FACE is initialized.
SORTMODE Sort mode for file folder listings. Values include the following hexadecimal digits:
1 Sorted alphabetically by name.
2 Files most recently modified first.
800 Sorted alphabetically by object type.
The values above may be listed in reverse order by ORing the following value:
1000 List objects in reverse order. For example, a value of 1002 will produce a folder listing with files LEAST
recently modified displayed first. A value of 1001 would produce a "reverse" alphabetical by name listing of the
folder.
DISPLAYMODE Display mode for file folders. Values include the following hexadecimal digits:
0 File names only.
4 File names and brief description.
8 File names, description, plus additional information.
WASTEPROMPT Prompt before emptying wastebasket (yes/no?).
WASTEDAYS Number of days before emptying wastebasket.
PRINCMD[1-3] Print command defined to print files.
UMASK Holds default permissions with which files will be created.
.pref Variables
Variables found in .pref are the following:
SORTMODE Contains the same values as the SORTMODE variable described in .environ above.
DISPMODE Contains the same values as the DISPLAYMODE variable described in .environ above.
.variable Variables
Variables found in .variables include:
EDITOR Default editor.
PS1 Shell prompt.
SunOS 5.10 3 Jul 1990 environ(4)