I want to read the variables and the values from the txt file and compare these values with the ones computed by script.
for ex:
say var.txt contains the variable names and their values:
one 1
two 2
three 3
The value of variables "one" "two" and "three" will be computed in the script also. i want to compare the values read from var.txt and values computed in the script and check if thy are equal.
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)
I know there are caveats about using read in pipelines because read is treated by a subshell. I know this but I can't think of any way to accomplish this regardless, I'm still a rookie.
I hope somebody will be able to interpret what it is that I'm trying to accomplish and correct me.
... (2 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)
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)
For eg: I have sample.txt file with 4 rows of record like:
user1|password1
user2|password2
user3|password3
user4|password4
The username and password is sepsrated by '|'
I want to get the 1st row value from the file and assign it to two different variables(username and password)
in my... (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)
Hi,
I want to replace a chain of if-else statement in an old AWK file with values from Db2 table or CSV file. The part of code is below...
if (start_new_rec=="true"){
exclude_user="false";
user=toupper($6);
match(user, "XXXXX.");
if (RSTART ==2 ) {
... (9 Replies)
I have several problems with my problems: I hope you can help me.
1) the If else statement I am getting an error message. My syntax must be incorrect because the entire statement is throwing an error.
For example in filew.log if these items don't exist Memsize, SASFoundation and also if... (0 Replies)
Discussion started by: dellanicholson
0 Replies
LEARN ABOUT XFREE86
ucf.conf
UCF.CONF(5) Debian GNU/Linux manual UCF.CONF(5)NAME
ucf.conf - site-wide configuration file for ucf
SYNOPSIS
/etc/ucf.conf
DESCRIPTION
The file /etc/ucf.conf is actually a Bourne Shell snippet included during the package build process, and hence you may put any shell direc-
tive in that file (just make very sure you know what you are doing).
All the variables have reasonable default values, and some may be overridden on a per run or a per individual basis by using environment
variables, and all configurable variables can be overridden by options to the scripts themselves.
The value of a variable can be set so:
a) Defaults exist in the rules file. These are the values used if no customization is done.
b) Some variables can be set in the config file /etc/ucf.conf. These values override the defaults.
c) Some variables can also be set by setting a corresponding environment variable. These values override the config file and the defaults.
d) Using script command line options. All configurable variables may be set by this method, and will override the other methods above.
Configuration File options
At the moment, the user modifiable variables supported are:
DEBUG Debugging information: The default value is 0 (no debugging information is printed). To enable debugging output, set the
value to 1.
VERBOSE Verbosity: The default value is 0 (quiet). To change the default behavior, set the value to 1.
conf_force_conffold
Force the installed file to be retained. The default is to have this variable unset, which makes the script ask in case
of doubt. This can be overridden by the environment variable UCF_FORCE_CONFFOLD
conf_force_conffnew
Force the installed file to be overridden. The default is to have this variable unset, which makes the script ask in case
of doubt. This can be overridden by the environment variable UCF_FORCE_CONFFNEW
conf_source_dir This is the directory where the historical md5sums for a file are looked for. Specifically, the historical md5sums are
looked for in either the file ${filename}.md5sum, or the subdirectory ${filename}.md5sum.d/
conf_old_mdsum_file
Force the historical md5sums to be read from this file, rather than defaulting to living in the source directory. Set-
ting this option overrides settings in the environment variable UCF_OLD_MDSUM_FILE
Files
System-wide defaults are placed in /etc/ucf.conf,
SEE ALSO ucf(1),
BUGS
There are no bugs. Any resemblance thereof is delirium. Really.
AUTHOR
This manual page was written by Manoj Srivastava <srivasta@debian.org>, for the Debian GNU/Linux system.
Debian Feb 12 2002 UCF.CONF(5)