In ksh93, a period in a variable name denotes a compound variable. Since you did not explicitly declare a compound variable, I have used regular variables.
All
I want to find the occurence of comma in a variable in KORN shell. For example :
var = test,test2,test3 ....
finding occurence of comma in this variable. Result = 3 now.
Please help me to write the code.
Thanks in advance.
Regards
Deepak (2 Replies)
Hi,
How will you refer one variable's value using another in unix?
For e.g
Take the case
System1_ip=172.120.20.54
And in latter part of the program while I'm using the values in a for loop
I use
i=System1
j=${i}_ip
k=$j
But K's value at the end of the run is System1_ip
I want... (2 Replies)
in a text " Korn Shell Unix programming Manual 3° Edition"
i have found this sintax to declare a compoud variable:
variable=(
fild1
fild1
)
but this sintax in ksh and sh (HP-UNIX) not work...
why?? exist another solution for this type of variable ??? (5 Replies)
I am using two shell scripts a.ksh and b.ksh
a.ksh
1. Sets the value
+++++++++++++++++
export USER1=abcd1
export PASSWORD=xyz
+++++++++++++++++
b.ksh
2. Second scripts calls sctipt a.ksh and uses the values set in a.ksh and pass to an executable demo... (2 Replies)
Hi All-
First time using iSql.
I have 4 query files - some have more than 1 line of sql statements
After a bit of research it appears I can just use the -i command and specify the input file.
Questions:
Does it matter that there are multiple queries in each file? Do I need to have... (3 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)
I'm using korn shell and I am wondering if it's possible to use a parameter passed into a function to build a variable name in a configuration file. I have the function in one source file, I'd like to have a global configuration file instead of hardcoding logins to each script.
So I have a... (7 Replies)
Hi
I am using two shell scripts which are running on the system simultaneously. And in one of the script i am exporting an Integer Variable.
Now i want to use the variable in another script. But i cannot run the first script in the second as the first script has many other functions which... (3 Replies)
Hi all,
I have a script which should take more than 9 command line inputs while running. Likescript.sh a s d f g h j j k l o p i u y t r e w
Now in the script if I have to access one of the input which is at position after 9, in this case say 'p' then how can I do that?
echo $12 will not work... (15 Replies)
Discussion started by: pat_pramod
15 Replies
LEARN ABOUT DEBIAN
cdde
cdde(1)cdde(1)NAME
cdde - Compact Disc Detect & Execute
SYNOPSIS
cdde [-c filename] [-rbvVh]
DESCRIPTION
cdde is a program that detects when a cdrom drive on your system has had a disc inserted.
When it finds a disc inserted in the drive it will attempt to determine the type of the disc, and execute a specified command.
This means you can put in a dvd and your favorite dvd software will start, or put in a data cd and it will be automatically mounted for
you.
Right now cdde can detect the following types of discs:
* audio cd
* data cd
* dvd
* mixed audio/data cd
* vcd
* svcd
* blank cdr/dvdr
For now the dvd checking is just a bit of magic that checks to see if there's a "video_ts" directory on the disc. Same goes for the vcd
checking: it just looks for a "vcd" directory on the disc.
cdde reads its configuration from "~/.cdde.xml" unless otherwise specified on the command line.
OPTIONS -r, --run
Run commands on disc already in drive when is started.
-b, --batch
Batch mode: check all drives once then exit. (implies -r)
-c, --config <filename>
Use the config file <filename>. (Default is ~/.cdde.xml)
-v, --verbose
Print out lots of information.
-V, --version
Print out version information.
-h, --help
Print Display this help and exit.
FILES
~/.cdde.xml
SEE ALSO cdde.xml(5)AUTHORS
Eric Lathrop <eric@ericlathrop.com>
Stanislav Maslovski <stanislav.maslovski@gmail.com>
WEBSITE
For the latest release of cdde, see:
http://cdde.sourceforge.net/
Eric Lathrop 0.3.1 cdde(1)