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.
ksh script if then if?
Name: Douglas A. Maske Date: October 3, 2003 at 09:10:21 Pacific OS: Solaris 8 CPU/Ram: 512 Mb
Comment:
Why doesn't if then if work:
if [[ $BLAH = "blah" ]] then echo "User blah already exists.\n" if [[ $KEY_CHECK1 != "filename" then echo "Generating filename\n" touch filename echo "Done...\n" fi exit0; fi
Summary: I try to make a Script, which verify the lines in a File. Dos File has 3 lines = dothis1 Dos File NOT have 3 lines = dothat2 unfortunately the if-then-else-command get always FALSE (dothat2). Even if ...
Summary: Hello, I have a Ksh script problem. The scrip is polling a directory every 5 mins to get a file, which contains the input line like "put abc.dat /home/test" etc. If the file contain is not empty, th...
Summary: If you are asking how to pull variables from each line of your file based upon fixed column positions, then I believe you have the general idea of it. In the ksh script below, the while-loop reads ea...