Sorry, I am new to awk and shell program. I was modifying the existing coding using awk function...and I don't know awk will execute shell instructions or not.
Please let me know whether it can be possible or not..and how?
Thanks
Raj
Hi ,
I am invoking awk in shell script and its giving the below error..
syntax error The source line is 7.
The error context is
$ORACLE_HOME/bin/sqlldr >>> safety/safety@ <<<
awk: The statement cannot be correctly parsed.
The source line is 7.
syntax error The...
here is the code..
#!/bin/sh
#--- Set the environment
COMPMAN_TOP=/u61/compman; export COMPMAN_TOP
SCRIPT_DIR=$COMPMAN_TOP/scripts; export SCRIPT_DIR
DATA_DIR=$COMPMAN_TOP/incoming; export DATA_DIR
LOG_DIR=$COMPMAN_TOP/log; export LOG_DIR
BACKUP_DIR=$COMPMAN_TOP/backup; export...
Hi friends,
Thanks for all you support ...
In this code we are comparing the incoming file size with the existing files size.
If the incoming file size is 123 and one of the existing file size is 1234 still it gives me as duplicate file.
How should handle this?
Thanks raj
motoslide,
I created the .sh file in unix...and also I changed the NEWSUM,it is giving the below result
"duplicate.sh[14]: [31644: not found.
duplicate"
Even if incoming file is new it displays "duplicate" in the output.
Please find the code below..
#!/bin/sh
#--- Set the environment...
olded,
Thanks for ur code...
Just modified ur code and tried to run, it is giving error "COMPMAN_TOP^M: This is not an identifier."
Pls find below my code..
#!/bin/sh
#--- Set the environment
COMPMAN_TOP=/u61/compman; export COMPMAN_TOP
SCRIPT_DIR=$COMPMAN_TOP/scripts; export SCRIPT_DIR...
Hi,
Iam new to shell scripting, and immediately need to write a shell script to find whether the incoming file is already exists in the directory or not.
Requirement is...
Daily we will get some files located in Incoming Folder.After that file is loaded to database the file is moved to Bakup...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.