ok I have a list of files for example:
130-4-32.HindIII.0.ids
130-4-32.HindIII.0.ppm
130-4-32.HindIII.0.ppm.gz
130-4-33.HindIII.0.bands
130-4-33.HindIII.0.ics
130-4-33.HindIII.0.ids
130-4-33.HindIII.0.ppm
130-4-33.HindIII.0.ppm.gz
130-4-34.HindIII.0.bands ... (1 Reply)
Hi,
Could anyone give me a idea how to strip the lines from a given file. example
***********
1st occurence
1st occurence
1st occurence
1st occurence
***********
2nd occurence
2nd occurence
2nd occurence
2nd occurence
2nd occurence
2nd occurence
*************
3rd occurence
3rd... (10 Replies)
I have a file oratab with entry like this
SCADAG:/esitst1/oracle/product/9.2.0.8:Y
I am trying to discover a way to change the 9.2.0.8 part of this to something like 10.2.0.4 as part of an upgrade script.
I have tried
cat /etc/oratab >>/tmp/oratab... (1 Reply)
My script needs to read a variable from the user. But before the user types the input, I want to give a default value so the user can edit the default value for input.
How can I implement it?
My script is something like:
#!/bin/sh
read -p 'Port number: ' -e port_number
echo "Port... (7 Replies)
I am new newbie to unix.
I am taking user input using ksh script.
The valid value user can enter is
a) Numeric 1 to 500
b) character e, r
c) e1 to e100
I figured out how to deal with a) and b) but want to separate characters when user enter e1 to e100
I want to store e in... (1 Reply)
I have a requirement, which is as follows
*. Folder contains list of xmls. Script has to create new xml files by copying the existing one and renaming it by appending "_pre.xml" at the end.
*. Each file has multiple <Name>fileName</Name> entry. The script has to find the first occurance of... (1 Reply)
I have a file containing dates like below
2010 1 02
2010 2 01
2010 3 05
i want the dates to be like below
20100102
20100201
20100305
i tired using
awk '{printf "%s%02s%02s",$1,$2,$3}'
But it does not work,it puts all the dates in one line,i want them in seperate lines like the... (6 Replies)
HI guys i have a question.
Question 1: how do i modify a particular string?
e.g
echo "Please enter Book Title: "
read a
echo "Please enter Author: "
read b
if ]
then echo " Record found!"
which will then pop out a menu with the follow output
1. Update Name
2.... (1 Reply)
I'm trying to create a ksh script that will ask the user for the port number. $PORT1 is the variable I want to use that will contain whatever numbers the user inputs. The script would edit ports.txt file, search and delete "./serv 110.1.0.1.$PORT1 200;=3" .
So if the user types 50243 then the... (5 Replies)
Discussion started by: seekryts15
5 Replies
LEARN ABOUT NETBSD
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)