Search Results

Search: Posts Made By: Poonamol
3,115
Posted By Poonamol
If file name and location is fixed, then store it...
If file name and location is fixed, then store it in variable and pass the variable to script.
Use variable in main script whenever u want using $variable.
1,735
Posted By Poonamol
Thanks for reply. Its working fine now. :) :)
Thanks for reply. Its working fine now. :) :)
1,735
Posted By Poonamol
How to remove messages coming from UNZIP command?
Hello,
I am writting a script, which gets folder and search for *.zip files in to it.
If .zip files are available, then UNZIP all files into that folder only.
Here is my code,
for file in...
Forum: Programming 10-25-2010
13,757
Posted By Poonamol
Thanks a lot to all of you for your time and...
Thanks a lot to all of you for your time and sugessions.
Now I got the solution of my problem, Here is shell script part of code change

Code:
DATE_FORMAT="YYYYMMDD"
DATE_FORMAT=`echo...
Forum: Programming 10-25-2010
8,334
Posted By Poonamol
Thanks a lot for your time and sugessions. Now...
Thanks a lot for your time and sugessions.
Now I got the solution of my problem, Here is shell script part of code change

DATE_FORMAT="YYYYMMDD"
DATE_FORMAT=`echo "'"$DATE_FORMAT"'"`
...
Forum: Programming 10-21-2010
8,334
Posted By Poonamol
because below code of line is not inserting value...
because below code of line is not inserting value of $DATEGEN to date_gen.
date_gen VARCHAR2(10) := '$DATEGEN';
To get value of DATEGEN I did that and I got the value as shown in above thread.
Forum: Programming 10-21-2010
8,334
Posted By Poonamol
Now I am receiving error for $DATEGEN as, ...
Now I am receiving error for $DATEGEN as,
declare
date_gen VARCHAR2(10) := "$DATEGEN";
begin
INSERT INTO TBL1 ( EMPNAME,EMPID,EMPBDATE)
VALUES(BBBBB,DDDD2,TO_DATE(date_gen,'YYYY-MM-DD'));
end;...
Forum: Programming 10-21-2010
8,334
Posted By Poonamol
Thanks for reply. I changed code as, ...
Thanks for reply.
I changed code as,
INS_REC=$(sqlplus $USERID/$PASSWORD@$DATABASE << EOF
set head off
set feed off
set serveroutput on
INSERT INTO TBL1 ( EMPNAME,EMPID,EMPBDATE)...
Forum: Programming 10-21-2010
13,757
Posted By Poonamol
Thanks for reply, Ichanged the code as, ...
Thanks for reply,

Ichanged the code as,
INS_REC=$(tee /tmp/mySQL <<! |sqlplus $USERID/$PASSWORD@$DATABASE << EOF
set head off
set feed off
set serveroutput on
INSERT INTO....
/
EOF)
...
Forum: Programming 10-20-2010
8,334
Posted By Poonamol
Oracle Database: INSERT INTO with TO_DATE function
Hello,

I am writting a procedure in shell script as,
set serveroutput on
declare
date_gen DATE := $DATEGEN;
begin
INSERT INTO TBL1 ( EMPNAME,EMPID,EMPBDATE)...
Forum: Programming 10-20-2010
13,757
Posted By Poonamol
Thanks for the reply and your time. I got the...
Thanks for the reply and your time.
I got the problem,
DATE=`echo $line | cut -d ";" -f 2`
echo "Date is : $DATE"
DATEGEN==`echo $DATE | cut -c1-8`
echo "Generated Date is : $DATEGEN"

and...
24,699
Posted By Poonamol
you can use cut, main=`echo...
you can use cut,
main=`echo "ABCDEFGHIJ20100909.txt"`
first=`echo $main | cut -c1-2`
second=`echo $main | cut -c3-5`
third=`echo $main | cut -c11-18`
echo "$first,$second,$third,$main"

Best...
Forum: Programming 10-20-2010
13,757
Posted By Poonamol
I am processing input file data, I am checking...
I am processing input file data, I am checking the 7th field of input file. If its "1" then taking data from that line and inserting it into database table.Here is my script,
#!/bin/sh...
Forum: Programming 10-19-2010
13,757
Posted By Poonamol
Thanks for the information and your time. ...
Thanks for the information and your time.

still I am facing error from below code,
INSERT INTO BIOS_TRANSCODING ( EMPNAME,EMPID,EMPBDATE)...
50,072
Posted By Poonamol
Thank you so much for your time and reply.
Thank you so much for your time and reply.
4,631
Posted By Poonamol
I think you need to provide source and...
I think you need to provide source and destination paths with scp command.
4,631
Posted By Poonamol
Please check the correct way to use scp command. ...
Please check the correct way to use scp command.
Read man pages of scp.

scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i
identity_file] [-l limit] [-o ssh_option] [-P port] [-S
...
50,072
Posted By Poonamol
Date variable in shell script
Hello guys n girls,

I am using ksh script on AIX platform.
I am getting a DATE from input file in "YYYYMMDDHHMISS" format.
Now I want the same date in "YYYYMMDD" format into another variable.
...
Forum: Programming 10-18-2010
13,757
Posted By Poonamol
My whole project is in ksh script with Oracle...
My whole project is in ksh script with Oracle database. I have no choice to use any other scripting as well as DB programming languages.
Please provide any solution for above problem.
Forum: Programming 10-18-2010
13,757
Posted By Poonamol
Assign variable for INSERT INTO statement
Hello,

Can anyone tell me that,
How can I assign variable to shell script variable, which i need to use in INSERT INTO statement?

my shell script variables are,

EMPNAME=`regular...
12,364
Posted By Poonamol
My input file is also a big one. But for each...
My input file is also a big one.
But for each line I need to do something, so i am parsing each line.
If one field (4th) is one i am putting data from that line into database table. So I want to...
12,364
Posted By Poonamol
Thanks for reply. I did 80% of coding in my way...
Thanks for reply.
I did 80% of coding in my way using ksh script, so for a single delete command, why I prefer any other way?
I do not want to print that line. I want to delete a line from file.
12,364
Posted By Poonamol
I already did the coding for each line read and...
I already did the coding for each line read and getting the line, just want to delete it from file.

while read line
do
Val=`echo $line | cut -d ";" -f 4`
if [ "$Val" -eq 1 ]; then
// remove...
12,364
Posted By Poonamol
Delete line from file using ksh
Hi,
I want to parse each line from input file. I need to look for the 4th field of line, If its 1 then I need to remove that line from file.
Input file contents are,

02;ABC;PQR;1;dfg...
Forum: Programming 10-15-2010
29,959
Posted By Poonamol
Than you so much for this valuable suggesion and...
Than you so much for this valuable suggesion and thanks for your time. :)

---------- Post updated at 03:47 AM ---------- Previous update was at 03:43 AM ----------

Thanks a lot.

What is...
Showing results 1 to 25 of 120

 
All times are GMT -4. The time now is 03:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy