Search Results

Search: Posts Made By: bobprabhu
5,837
Posted By bobprabhu
ISSUE on SFTP fucntion ,parameter passing!
Hi Everyone!!

Hey i created a SFTP function to FTP the file from unix to Linux.

I need to FTP the 48 files from unix to linux.


IP=$1
Userid=$2
Prikeypath=$3
SrcPath=$4
DstPath=$5...
2,418
Posted By bobprabhu
i did the adviced changes ,still am getting the...
i did the adviced changes ,still am getting the difference...Since the values on the data file are same.:(

---------- Post updated at 02:16 AM ---------- Previous update was at 02:16 AM ----------...
2,418
Posted By bobprabhu
fail on comparison
Hi
Am having 2 files.

I have one data file.
before inserting in to the table am taking cout of the data file and store as data 1.

After insert in to the table and am taking the count from...
2,598
Posted By bobprabhu
need an awk script/logic
In one data file i have values like this


a b c 1 2
e f g 2 3
i j k 3 5

I need to sum up the last 2 columns and make a data file...How i can...
1,669
Posted By bobprabhu
Hi Devaraj thanks for the reply... Am...
Hi Devaraj
thanks for the reply...

Am getting error like ..

awk NR==1{ord=$5;del=$6;s=$4;print $0 > s ;getline}
$4 !~ s {print "--------" > s;print "total",ord,del > s ;s=$4;ord=0;del=0}
$4...
1,669
Posted By bobprabhu
Issue on Suming up the values in awk
Hi

I have a data file like a.dat

item_no Item_id qty_ordered qty_delivered
123 axxx 1 1
456 axxx 2 2
899 axxx 2 2
789 bxxx...
2,590
Posted By bobprabhu
Thanks Alot For the prompt reply GUYS!! ...
Thanks Alot For the prompt reply GUYS!!
appriciated!!
It worked!!
2,590
Posted By bobprabhu
issue on reading the file and appending date
Hi

Am having issue on appending time stamp

I know the exact file names in the directory like

a.dat
b.dat
c.dat
e.dat
f.dat

I want to read all these file names and append the...
12,686
Posted By bobprabhu
hi thanks for the reply. I have a file like...
hi thanks for the reply.
I have a file like a1.dat,a2.dat.a3.dat.
cp /ab/cd/a*.dat /ef/gh/

while copying that i need to append the current timestamp for all the files a1.dat.090603,a1.dat.090603...
12,686
Posted By bobprabhu
Appending the current date on Copying the file.
Hi

I have the data file in the one directory and i have to copy the file in the another directory with the timestamp.


EX:

/ab/cd/a.dat i need to copy this file to the another directory...
14,152
Posted By bobprabhu
hi demwz Thanks for the comment. am...
hi demwz

Thanks for the comment.

am able to fetch the date...i want to display the between dates like.
24/11/08 to 01/12/08 in the subject.
14,152
Posted By bobprabhu
date need to be add in the subject of the mail.
Hi
Am fetching a weekly report pf data..once i fetched the data i need a sent report by mail.

In the subject of that mail i want to sent a message like..

SUBJECT :The report had been fetched...
2,204
Posted By bobprabhu
Issue in mail sending process
Hi
I created one CSV file and i need to append some message in the content of my mail.
$sales=sales.dat
$sales_csv=sales.csv
$sales_report=sales.txt
this is the command am using it.

echo...
3,985
Posted By bobprabhu
hi thank you guys. My problem got solved as...
hi thank you guys.

My problem got solved as per your proposed solutions. :):D
14,906
Posted By bobprabhu
decimal calculation
Hi
am calculating the percentage of the pass and fail.
Pass:
echo `echo 1498*100/1667| bc`%
fail:
echo `echo 169*100/1667 | bc`%


for this am getting

PASS= 89%
fail =10 %

I need to...
3,985
Posted By bobprabhu
thank you for both of you guys !! I'll let...
thank you for both of you guys !!

I'll let you know once i solved this issue.
3,985
Posted By bobprabhu
okay,i belive this should work. thanks for the...
okay,i belive this should work.
thanks for the solution.
am not able to connect to my network now and i'll check it tommorow and let you if i have any issues.
3,985
Posted By bobprabhu
Hi I already tried in this way it's not...
Hi

I already tried in this way it's not working ,

echo `echo $pass*100/$total | bc`% passed

am getting error like Syntax at line 1

b'ze if my pass parameter hold the direct hot code...
3,985
Posted By bobprabhu
Hi This is my script am getting the data...
Hi

This is my script am getting the data from the one CSV file and am taking the count of pass and fail records
and i need to find the percentage of the pass and fail respectively.






...
3,985
Posted By bobprabhu
Can anybody advice me where am doing mistake?
Can anybody advice me where am doing mistake?
3,985
Posted By bobprabhu
issue in calculation
Hi all

Already posted this question,i belive i didn't exactly said my question.

I have data files it stored in the different path like
/st/vr/sum.dat
/st/vr/pass.dat
/st/vr/fail.dat

we...
30,017
Posted By bobprabhu
What i need to change in this statment? ...
What i need to change in this statment?
exp1=$sum*100/$failed
echo the failed percentage is 1 expr $exp1 | bc `

u mean to say the decalration of this sum,failed,passed should be shared with " `...
30,017
Posted By bobprabhu
Hi Paresh n doshi thanks for the logic. ...
Hi Paresh n doshi
thanks for the logic.

"be carefule, the characters are not single quotes but the one above tab key." am not clear on this pharse.

I excuted the same as you said.

...
30,017
Posted By bobprabhu
Hi cfajohnson I was not well for the past 4...
Hi cfajohnson

I was not well for the past 4 days ,today only came to work.
Thank you for the script.

the awk script is working fine,if i excuted alone as you said.
I declared the filed 1...
30,017
Posted By bobprabhu
Need an AWK script to calculate the percentage
Hi
I need a awk script to calculate percentage.

I have to pass the pararmeters in to the awk script and calculate the percentage.

Sum = 50
passed = 43
failed = 7

I need to pass these...
Showing results 1 to 25 of 34

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