Hi,
I have a script like below :
#!/bin/ksh
echo "Do you want to export all docs ?"
read alld
echo "Do you want to export template or report only "
read temr
case && ]
#arguments
;;
case && ]
#arguments
;;
case && ]
#arguments
;; (4 Replies)
hi, i will like to know whether awk command can ignore case?
i written a script that will take in user input and search for data on the 1st field from a text file.
echo -n "Title:"
read title
awk -F":" '$1~/'"$title"'/{print $0}' Filename
read ans
return
... (5 Replies)
I'm trying to run the logic below but get a `<' is not matched error message when I return a Y or y;
printf "Run this ? : "
read RESP
case $RESP in
Y|y)
cat <<EOF > file
today is Monday
EOF ;;
N|n)
exit 1 ;;
esac
Any ideas? (2 Replies)
i want to get user input like this
please tell which option to chose
1. mango 2. tango 3. rango
if user chooses mango
then it should execute a set of statements and again ask like this
what do you want to do
1.add 2.subtract 3.exit
when i choose exit it should goto my previous... (1 Reply)
Hi,
In my script it takes the input from the user. i.e. sys or system.
How can i make it case insensitive in my code.
if || ; then
echo "valid"
Any help is appreciated.
Thanks,
priya (4 Replies)
This is supposed to be a simple bank script. Whenever I try the case construct options it wont work for the deposit option after typing the amount it just goes straight back into the menu, same with withdrawal option. Option 3 which should just display the balance amount doesn't echo anything. The... (2 Replies)
Hi All,
I have script which will take the parameter as
PNLYYYYMMDD/PNL
or PNL-AMDYYYYYMMDD/PNL-AMD
now based on YYYYMMDD my script will parse and do some logic within
my case statement looks like below
case `echo $1 | tr '' ''`
in
pnl*) do some logic;;
pnl-amd*) do some logic;;... (2 Replies)
I need to Write a shell script that allows some system-administration tasks to be preformed automatically from a menu-driven interface. with automated following tasks:
Copy directory tree
Delete files or directories
Output Information (this part is done )
*Copy directory tree
The “Copy... (2 Replies)
have written the below code to check whether the string received from user is a file name or dir using case statement, but its going into default case*).
#!/bin/sh
#Get a string from user and check whether its a existing filename or not
rm str2
rm str3
echo "enter a file \c"
read fil... (8 Replies)
I'm having an issue with bash read input when using a case statement.
The script halts and doesn't read the input on the first loop. if I hit enter then the scripts starts to respond as expected. Need some help here.
defaultans=8hrs
read -e -i $defaultans -p "${bldwht}How long would you like... (5 Replies)
Discussion started by: woodson2
5 Replies
LEARN ABOUT SUNOS
kkcvtocs00
kkcvtocs00(1) User Commands kkcvtocs00(1)NAME
kkcvtocs00 - conversion from kkcv user dictionary to cs00 user directory
SYNOPSIS
kkcvtocs00 [filename...]
AVAILABILITY
SUNWjfpu
DESCRIPTION
kkcvtocs00 is a utility that is necessary to use the words of your user dictionary of cs00 on JFP system as well as one of kkcv on JLE
system. kkcvtocs00 can be used as a filter; if filename is given, it is used as an input. Otherwise, the standard input is used for it.
The standard output is always used as an output. The input format should be the format of "jiritsugo-file" in kkcvdicedit which is speci-
fied for a line. kkcvtocs00 shows an error message for a line that is not on the format, and ignore the line.
EXAMPLES
Example 1:
Create your user dictionary of cs00 from one of user dictionary of kkcv as follows.
1. In advance, on the JLE system, create "jiritsugo-file" from your user dictionary of kkcv.
JLE% kkcvdicedit extract kkcv_u.dic kkcv_u.list
2. On the JFP system, convert this "jiritsugo-file" into "tango-list-file" of udicm.
JFP% kkcvtocs00 kkcv_u.list > cs00_u.list
3. Create your user dictionary of cs00 from this "tango-list-file".
JFP% udicm create /usr/lib/mle/ja/cs00/cs00_m.dic cs00_u.dic cs00_u.list
SEE ALSO mdicm(1), udicm(1)DIAGNOSTICS
The only purpose of kkcvtocs00 is to support of inheritance of user dictionary words from kkcv to cs00. kkcvtocs00 assumes that "jirit-
sugo-file"(s) will be given as an input file. Therefore, its error process is not always strict.
Currently, the following error and warning messages are defined.
Error: file filename line number: is not kkcvdicedit jiritsugo format, ignored.
Warning: file filename line number: "Invalid hinshi(s) have found. They are converted into ":UN".
SunOS 5.10 10 Jan 2003 kkcvtocs00(1)