Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to write a korn shell script
Name: AIXBEGINNER Date: August 13, 2002 at 02:08:53 Pacific
Comment:
Hi,
I'm a beginner script user. It there any shell script example where I could reference on how to check a file in a directory is there before overwrite it in unix AIX 4.3.3.
Name: Frank Date: August 13, 2002 at 02:41:29 Pacific
Reply:
Hi tom,
use the test command also knowen as []. This is the reason why you should never name a script test.
e.g. your script looks like following
filename="/u/a1xrdb1/filewo" if [ -f ${filename} ] then echo "Datei schon da " 1>&2 else echo "Datei noch nicht da" fi
No RISK no fun Frank
0
Response Number 2
Name: Ifthekhar Javed Date: September 2, 2002 at 01:07:37 Pacific
Reply:
I want to write script file one application generating one logile and everyday this file becomes too big .So i would like write a script to generate new logfile by date wise.I will be thankfull to you if you can guide me.
Summary: If it is a Korn shell script, use typeset -l or typeset -u (-l will set the variable value to lower case and -u will set the variable value to uppercase). Then, you can search on the translated value...
Summary: I am trying to write a Korn shell script to use sftp to transfer data from one system to another. I cannot seem to figure out how to send the required password to log on to the remote system. I have t...
Summary: I'm trying to write a korn shell script and I'm at my wits end as to how to solve it! The problem I have is that I'm trying to parse a file and edit specific parts of the file. For example, I have 4 r...