How do i use a config.txt to recursively pass a set of variables to a shell script
eg my config.txt looks like this :
path=c://dataset/set1
v1= a.bin
v2= b.bin
path=c://dataset/set2
v1= xy.bin
v2= abc.bin
..................
and so on .
and my testscript : (2 Replies)
Hello All,
I was just wondering if there is any direct way to access PL/SQL OUT variables from Korn Shell Script.
I could already figure out how to return a single value back from PL/SQL to Shell Script (using bind variable).
But, what if we want to return multiple values?
One option I... (4 Replies)
I'm working in korn shell and have a variable which contains a string like:
aa_yyyymmdd_bbb_ccc_ddd.abc. I want to treat the _ and . as delimiters and parse the string so I end up with 6 values in variables that I can manipulate. My original plan was to use
var1=`echo $sting1 | cut -c1-c2` but... (9 Replies)
Hi everybody, I have a string stored in a variable called record:
record="SNMPv2-SMI::ent.9.9.43.1.3.9.2 = Timeticks: (177330898) 20 days, 12:35:08.98"
I want to write some regular expressions good for Korn Shell to extract the number between parenthesis, in this case 177330898, and put it in... (3 Replies)
Hi I'm not using Korn93 but want to use floating point variable.
Is there any solution to do that ?
thx for help.
---------- Post updated at 02:28 PM ---------- Previous update was at 12:38 PM ----------
I have the following peace of code:
for n in `cat log.January.1.array`
do
... (3 Replies)
Enclosed is comma separated text file. I need to write a korn shell program that will parse the text file and insert the values into Oracle database.
I need to write the korn shell program on Red Hat Enterprise Linux server.
Oracle database is 10g. (15 Replies)
hello,
i have a variable which should have following content :
var="value1"
or
var="value2"
or
var="value2:*" # example: value2:22
how can i check :
- if the content is ok (value1 / value2* )
- the two options of "value2"
when content is example "value2:22" , i want to split... (3 Replies)
In order to use the shellcurses functions described at:
Shell Curses function library
I am learning about ksh, which has arrays. My trusty Kochan & Wood book says that for any Korn Shell array AR :
${AR
} expands to all the defined array elements, and
${#AR
} expands to the number... (3 Replies)
Hi All,
#include <iostream> int main() {
std::int foo = 34;
system("mkdir /home/linuxUser/fooDir");
system("vi fooFile")
system("write foo in fooFile")
foo = 43;
foo = read foo from fooFile;
std::cout << "foo = " << foo ; }
result should be
foo = 34
can... (3 Replies)
Discussion started by: linuxUser_
3 Replies
LEARN ABOUT OSF1
fddisk
fddisk(8) System Manager's Manual fddisk(8)NAME
fddisk - FDI disk maintenance utility
SYNOPSIS
/sbin/fddisk options special
OPTIONS
Unless this option is specified, an attempt to format or to install a file system fails in two cases. The first failure occurs when the
device has been opened since the media was inserted. The second failure occurs if the device is currently opened by another process. For-
mats the media to the density appropriate for that media. Copies a hex dump of sector number PSN to stdout. Uses the interleave factor
nnn for formatting. If specified, ccc indicates an additional intercylinder interleave. Copies a packed-C hex dump of the entire disk to
stdout. Specifies silent mode. This option blocks informational messages from appearing on stderr. Reads the entire media. The command
fails if the utility finds a bad sector. Waits for media to be inserted into the drive if none is present. Waits for new media to be
inserted into the drive if none is present or if the current media has been opened since it was last inserted. Reads the disk and reports
on the format of the disk.
OPERANDS
Specifies an unmounted, raw device pathname. This device must be an FDI interface (fd).
DESCRIPTION
The fddisk utility, an FDI (integrated Floppy Disk Interface) disk maintenance program, can format a floppy disk, scan a floppy disk for
bad blocks, and read and write selected blocks. It can be used in shell scripts for checking the status of floppy disks. Such status
checks include checking for or waiting for the presence of media, and checking for or waiting for the user to change the media.
RESTRICTIONS
The fddisk utility has the following restrictions: You must have read/write access to the device. The device must not be mounted. The
program can only be used with a 3.5-inch floppy disk in the RX26 drive. In some cases, it might not be possible to format a floppy disk at
a higher density than it is already formatted. If this situation occurs, the floppy disk must be bulk erased before it can be reformatted
at a higher density.
EXAMPLES
This example formats a floppy disk in drive zero: # /sbin/fddisk -fmt /dev/rdisk/floppy0a This example formats a floppy disk in drive zero
when the disk has been read or written since it was inserted into the drive: # /sbin/fddisk -fmt -f /dev/rdisk/floppy0a
SEE ALSO
Commands: mount(8), restore(8), uerf(8)
Files: fd(7)fddisk(8)