08-03-2009
hmmm...
Thanks everyone for the replies. I think I should go with what Zaxxon told me earlier and as I had initially done it. I don't require functions because only single line of code, so that can be put there itself.
Regards,
HKansal
Last edited by hkansal; 08-03-2009 at 03:06 PM..
Reason: spelling mistake
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am having a problem setting a range of numbers for the "case" structure.
I can use with no problems, but
when I use it doesn't work???
Does the case struture allow numeric ranges?
eg:
echo -e "enter number between 0 and 60: \c"
read $answer
case $answer in
) echo... (2 Replies)
Discussion started by: Joe54321
2 Replies
2. UNIX for Dummies Questions & Answers
Hi all
Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf
/dir1/file.dbf
I want to copy these to a directory and keep the structure however starting at a new dir... (8 Replies)
Discussion started by: jhansrod
8 Replies
3. Shell Programming and Scripting
Hi,
Can anyone help me with the following case structure?
echo "Please enter the date for which you want the Report:\c"
read dat
d1=`echo $dat|cut -c7-8`
m1=`echo $dat|cut -c5-6`
y1=`echo $dat|cut -c1-4`
yr=`expr "$d1" - 1`
case "$yr" in
0)
MONTH=`expr "$m1" - 1`... (4 Replies)
Discussion started by: kamitsin
4 Replies
4. Programming
Hello Groups
I am trying to find out ways of comparing a value from a 'c' structure to a value in another 'C' structure. the 'C' structure can be a List or liked list as it contains lot many records.
if we loop it in both the structures it is going to consume time.
I am looking for a simple... (3 Replies)
Discussion started by: dhanamurthy
3 Replies
5. UNIX for Dummies Questions & Answers
Hello Experts,
I ve been trying to build another shell where I am using the following code.
transact="tv5cpc1"
case "$transact" in
"...cp..")
xActType=""
;;
"...de..")
xActType="sp_dep"
;;
"...ep..")
xActType="sp_epa"
;;
"....v.")
... (4 Replies)
Discussion started by: hkansal
4 Replies
6. Shell Programming and Scripting
Hi,
while true
do
printf "$FBOLD\nPlease enter the minutes (0-59): $FREG"
read MIN
case "$MIN" in
||s) break 2;;
*)
echo ""
echo "Invalid minutes, please try again.";;
esac
done
In the above... (4 Replies)
Discussion started by: milink
4 Replies
7. Shell Programming and Scripting
Hi folks,
I am new to bash scripting so please excuse my question.
Is there any chance to combine a case structure with the read command?
Like
case (read -p "" variable) in
x)
Thx! (7 Replies)
Discussion started by: haukee
7 Replies
LEARN ABOUT DEBIAN
uuidcdef
uuidgen(1) General Commands Manual uuidgen(1)
NAME
uuidgen - a universally unique identifier (UUID) generator for XPLC
SYNOPSIS
uuidgen [ OPTION ] ...
uuidcdef [ OPTION ] ...
DESCRIPTION
uuidgen generates a new universally unique identifier (UUID). This UUID can be assumed to be unique to any other UUIDs generated on the
local system, as well as those created on any other systems, at any time in the past or future.
By default, uuidgen will try to generate a UUID with as much randomness as possible. It tries to pick out a high-quality randomness
source. If it cannot find one, it will fall back on using a time-based algorithm.
OPTIONS
-c, --cdef
Print the UUID as an initializer for a C structure, compatible with the type used by XPLC.
This is the default mode for uuidcdef.
-r, --random
Demand that the random-based algorithm be used to generate the UUID. This will prefer a high-quality randomness source, but may
fall back on a low-entropy one.
-t, --time
Demand that the time-based algorithm be used to generate the UUID.
-u, --uuid
Print the UUID like: "26175a27-c35d-4615-8dfb-1509eab28ef8". This is the printf(3) format: "%08x-%04x-%04x-%04x-%012x".
This is the default mode for uuidgen.
AUTHOR
Simon Law
SEE ALSO
uuidgen(1).
tvtime 0.3.13 October 2005 uuidgen(1)