10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
There is a script where we pass the parameter in lower case:
say: . ./scriptName pArameter
echo "`date` Entering $0 Reloading the $1 table "
(code to login MYSQL Database)
Truncate table $mname1;
Since now there is a limitaion of MYSQL that it accept... (5 Replies)
Discussion started by: ambarginni
2. Shell Programming and Scripting
I am in need of some help. I am not an advance scripter or programmer, I have novice knowledge. I cannot get a script to work as expected. The script basically does an FTP (which I have work perfectly) and writes to a log. However, I want the script to echo "Not Connected" if the FTP fails to... (2 Replies)
Discussion started by: anthonyon
3. Shell Programming and Scripting
I wrote the following simple shell script to perform addition, subtraction, multiplication and division. In the below program, i am not able to exit from the script
echo "Enter the Option Number: \c"
then... (3 Replies)
Discussion started by: uxpassion
4. Shell Programming and Scripting
I need to carry out the back up of the data if exists...(file size not equal to zero)
i tried in this way but it is not successful....where am making the mistakes? and if possible can i use case syntax in place of "if"
filename=`TZ=CST+24 date +%Y%m%d`
ZERO=0... (3 Replies)
Discussion started by: aemunathan
5. Shell Programming and Scripting
I have a script which extracts values from a Database (A persons name) and puts it into a variable in my script IE: $NAME
However the Value in the DB is all in uppercase and contains the users first name and last name
> echo $NAME
What I need is only the... (7 Replies)
Discussion started by: grahambo2005
6. Shell Programming and Scripting
I have a package to install and the installation script which does it . The files/directories names in the script are all lower case but the actual package has everything in upper case - file names, directories . I don't want to rename directories and files in the package - it has a lot of them . ... (2 Replies)
Discussion started by: vz6zz8
7. UNIX for Dummies Questions & Answers
Hi, I need to change military time to regular time. I know to use case to indicate whether a.m. or p.m. as follows:
0? | 1 ) echo a.m.;;
1 ) echo p.m.;;
* ) echo p.m.;;
My question is how do I add the hour and minute... (2 Replies)
Discussion started by: karp3158
8. Shell Programming and Scripting
Hi, I have a variable $Ctrcd which contains country names in upper case and i want to convert them into lower case. I have tried so many solutions from already existing threads but couldn't get the correct one.
Can anybody help me with this.....
Thanks a lot.. (2 Replies)
Discussion started by: manmeet
9. Shell Programming and Scripting
Im having some problems with this function, I pass two arguments to the function $1 $2 (Arguments are month and date inputted by the user)
for some reason the case always fails... however in the cases defined below where it shouldnt fail the result is:
if it fails with input... (6 Replies)
Discussion started by: Darklight
10. Shell Programming and Scripting
i need to use a case statement to do something when the user enters nothing at the prompt.
i know about the if statement and that isnt' what i'm interested in using for this. i want to use case.
heres the scenerio. a program asks a user for an input. i want to use a case statement to... (1 Reply)
Discussion started by: Terrible