I am trying to figure out what this script does. Can someone help?
Compares tey_header.txt to tey_header_yesterday.txt. If there's any differences between them, diff will output text describing it. If not, there will be no output. Because of the backticks, the output is saved into the variable delt_file.
I don't see that they actually use the output they saved here, but this may not be the whole script, yes?
If delt_file is empty -- as in, no changes -- update the timestamp on /transfer/adx/lrstb028_ctl2.ctl to today. That's what touch does, alters the timestamp without otherwise altering the file.
If delt_file is not empty, and /transfer/adx/lrstb028_ctl2_2.ctl exists, update its timestamp instead.
I'd rewrite it a little as:
...still keeps the output in delt_file in case they need it, but doesn't potentially break if its output contains spaces or newlines, and doesn't need to nest two if statements inside each other.
And if they don't even use diff's output anywhere this can boil down to
Last edited by Corona688; 09-17-2010 at 06:28 PM..
dear all,
can anyone help me to explain all the commands in the .profile bourne shell below ? really appreciate ur help. PLEASE.
1
2 # @(#) $Revision: 72.2 $
3
4 # Default user .profile file (/usr/bin/sh initialization).
5
6 # Set up the terminal:
7 if
8 then
9 eval ` tset -s -Q -m... (1 Reply)
currentSid=${TWO_TASK:-$ORACLE_SID}
echo $currentSid
this script returns value of ORACLE_SID but what i am not getting is
what is ":-" doing ?? (1 Reply)
See topic.
I need to understand how it works before i start to work on a program anyone have any resources or the time to explain it thanks. (5 Replies)
Dear Member,
i need help in this script
filename_DD_MM_YYYY_HHMMSS.log
this is the log file format
i need to split this name to three variables
1 variables contain filename
2 variables contain _DD_MM_YYY_
3 variables contains HHMMSS
... (7 Replies)
Hi expert
Can help me explain this script?
myFile="./File"
myCell=""
while
do
read myCell || break
echo ""
echo "***************************"
echo "$myCell"
echo "***************************"
done < $myFile
this is ksh.
Can help me... (1 Reply)
Hi frnds,
one my frnds has given resolution for my problem as below. it working great , but i couldnt understand somethings in the script.
Why ++ operator after the function calling. how these each block working. will each run for each input line sequencially or one block for all the lines... (9 Replies)
Hi i am new to shell script can any one please explain me the code below which is written for execution of python scripts which are located in same folder.
please explain the code line by line
ls *.py > xx
while
do
read myline || break
python $myline
done<xx
Thanks
Mukthyar.... (1 Reply)
think using shift would help me finish my script but cant get it work without your help. would appreciate if you give me a example with shift & counter in the same script so I can later work on that to my one.
Thanks and Good Luck! (1 Reply)