well I found lot of topics about awk..about if command in awk..
but I had to implement this:
nawk -F"|" '
$47 ~ /0R0011/ { print > ("/home/user/M/MC.tmp" )}
$47 ~ /0R0012/ { print > ("/home/user/M/DuSI.tmp" )}
$47 ~ /0R0014/ { print > ("/home/user/M/FF.tmp" )}
$47 ~ /0R0018/ { print >... (9 Replies)
Hi
I wanted to know if we can write a nested case in UNIX script.
Something like following -
Case ${sDB} in
Srvr1)
case ${sSchema}
Sch1)
DBusr=Username1
DBPwd=Pwd1
;;
Sch2)
DBusr=Username2
... (1 Reply)
Im new to unix and shell scripting. I am required to write a program and im in the process of creating a menu system. I have my main menu but i want to be able to select an option that takes me onto another menu. I have tried doing this with the case statement with no luck so far. Wondering if it... (3 Replies)
I have a question about nested double quotes. Any help is appreciated.
Here are my commands on Mac OS.
# string="Ethernet \"USB Ethernet\" \"Bluetooth DUN\" AirPort FireWire \"Bluetooth PAN\""
# echo $string
Ethernet "USB Ethernet" "Bluetooth DUN" AirPort FireWire "Bluetooth PAN"
#... (3 Replies)
I'm trying to write case statements with 'if statements' embedded inside of them. I'm using the korn shell but it's not functioning.
If I want to see if a string exists in a file and then perform an action, what would be the best way to do this?
For file "asg51fin" to delete a line if a... (1 Reply)
Hello,
I need to repack a file inside several java archives (nested .jar files) with or without overwrite.
I am using a manual approach with mc, but it's painfully slow progress.
For example I want to refresh a file deep inside a java archive (with nested .jar files):
I have a java... (0 Replies)
Hi there,
I have nested case in my script. I am asking user, want to continue? if user press y/Y then my inner case should continue, rather than that my code start from beginning. I would like to continue my inner case until user press n or N. Is any one tell me how can I do?
Thanking You,... (2 Replies)
Hi ALL,
I am receving a "strange" error using a nested if within an sql operation inside:
./dom.ksh: syntax error at line 80 : `then' unmatched
This is all my script code: in bold the step receiving the error.
Any help would really aprrecieted ......!
**** I have tried all the... (2 Replies)
Hello!
Below my first bash script. As you can see i build 2 nested cases. The second one (sync databases) is working fine. Bu the first one (sync datadirs) is not working. It says: rsync: command not found. However when i move the rsync command to the top of the script its working. So i suppose... (2 Replies)
Hi Experts,
Need your guidance for case statement. I tried many way but no success yet.Now my existing code is doing something like below. Each Line of the input file contains one test case.#!/bin/bash
FILE=$1
while read LINE; do
do COMMAND
done < $FILE
Now I want to modify the code... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies
LEARN ABOUT OSF1
dspcat
dspcat(1) General Commands Manual dspcat(1)NAME
dspcat - Displays all or part of a message catalog
SYNOPSIS
dspcat [-g] catalog_name [set_number[message_number]]
OPTIONS
Formats the output so that it can be used as input to the gencat command. You cannot use the message_number argument with the -g option.
OPERANDS
Specifies a file containing a message catalog. If the file is not in the current directory, dspcat searches for it in the set of directo-
ries specified by the NLSPATH environment variable. (For more information about NLSPATH, see catopen(3).) Specifies a set in the catalog.
Specifies a particular number in the specified set.
DESCRIPTION
The dspcat command, part of the Tru64 UNIX Message Facility, displays a particular message, all of the messages in a set, or all of the
messages in a catalog.
If you include all three command operands, dspcat displays a particular message. If you do not include message_number, all the messages in
the specified set are displayed. If you specify only catalog_name, all the messages in the catalog are displayed. If you specify either an
invalid message_number or invalid set_number, an error message is displayed. You must include set_number if you include message_number.
EXAMPLES
To display message number 2 in set number 1 of test.cat, enter: dspcat test.cat 1 2
SEE ALSO
Commands: dspmsg(1), gencat(1), mkcatdefs(1)
Functions: catclose(3), catgets(3), catopen(3)dspcat(1)