10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We have large log files, and we need to extract last four hours lines only,
Please let us know the command.
Thanks,
Saurau. (1 Reply)
Discussion started by: saurau
1 Replies
2. Shell Programming and Scripting
Hi,
I've been working on a few scripts and have been getting great info.
How, would I include in the below script, how I would let a user know that if they divide a SECOND number by zero, that they would get a divide by zero error? What's the easiest way of working this?
Cordially,
joe.
... (1 Reply)
Discussion started by: jefferj54
1 Replies
3. Shell Programming and Scripting
F= `expr $E/$S`
output
test5.sh: line 45: 1296863.27001857757568359375/21997: No such file or directory
can any one help me ,i just want to divide the $E/$S and Print o/p in F. (3 Replies)
Discussion started by: netdbaind
3 Replies
4. Shell Programming and Scripting
Gurus,
The issue I'm having is that my Shell won't accept SQL parameters properly......
Here's they way I'm running it....
applmgr@ga006hds
=> sh CW_MigrationDeployScript.sh apps <appspwd> <SID> '01-JAN' '31-MAR'
The process just hangs not submitting the SQL job...
... (3 Replies)
Discussion started by: WhoDatWhoDer
3 Replies
5. Shell Programming and Scripting
Hello,
i have below shell script to process ftp get from server and create file list afte finish.
this shell scipt has 6 parameter input.
unfortunately, it is only working to get the file and terminated before creating file list.
please help.
thanks,
#!/bin/ksh
## example usage :... (3 Replies)
Discussion started by: daryatmo
3 Replies
6. Shell Programming and Scripting
Hi GURU's,
I'm using a Shell Script to send email's as an attachment.
I'm Storing the email address in a table and catching in a variable.
MAILLIST=`noarg sqlplus -s $OraUsr << EOF
set heading off
set feedback off
set echo off
SELECT email_ids
FROM tpemail_table
WHERE... (9 Replies)
Discussion started by: karthikraj
9 Replies
7. UNIX for Dummies Questions & Answers
The following script is meant to check the presence of a file - called filename0.94.tar.gz - and uncompress it:
#!/bin/sh
# check presence of file
VERSION=0.94
if ; then
# file not present: abort
echo "Files cannot be found."
#exit 1 (commented out this line, so we can see how the... (2 Replies)
Discussion started by: figaro
2 Replies
8. Shell Programming and Scripting
Hi!
Can anyone tell me what went wrong in my shell script?
for dt_val in `cut -f 1 -d '|' /prod/ods/satyaki/sqlldr/grp.dat`
do
echo $dt_val
done
And, the output is -
23
39 (7 Replies)
Discussion started by: satyakide
7 Replies
9. Shell Programming and Scripting
Hi I am trying to create a shell script that will
look for a contracthead file first and if the contract head file does not exist on day1 exit script.
Now on day2 if contracthead exists or not run the script uploading files in order
such as contract line then contract contact
so the... (2 Replies)
Discussion started by: jonathan184
2 Replies
10. Shell Programming and Scripting
i need to divide this count by 2, what variable can i use in my script?
26 hcscprod_cpus_totals /2 = 13
13 hcncprod_cpus_totals /2= 6.5
541 ktazp_cpus_totals /2= 270.5
346 ktazd_cpus_totals /2=173
110 ktazi_cpus_totals /2=55
10 ktazq_cpus_totals /2=5 (2 Replies)
Discussion started by: wereyou
2 Replies