Search Results

Search: Posts Made By: asnandhakumar
1,946
Posted By asnandhakumar
DGPickett, Thanks much for your response. ...
DGPickett,

Thanks much for your response.

Can you please send me a script that can be used to integrate into my current scripts.

Many Thanks,
Nandha
1,946
Posted By asnandhakumar
Calculate difference in timestamps based on unique column value
Hi Friends,
Require a quick help to write the difference between 2 timestamps based on a unique column value:
Input file:
08/23/2012 12:36:09,JOB_5340,08/23/2012 12:36:14,JOB_5340
08/23/2012...
2,423
Posted By asnandhakumar
Spacebar, Agama I have tried the suggested...
Spacebar, Agama

I have tried the suggested changes, and it still errors out...

Changed code:

while IFS="," read inDate jobName
c=0
do
c=$(($c+1))
if [[$c -eq 1]]; then
ts1=$inDate...
2,423
Posted By asnandhakumar
Hi Spacebar, Thanks a lot for your quick...
Hi Spacebar,

Thanks a lot for your quick response. I have tried the code and this throws some errors:

./trans.ksh[17]: c+=1 : 0403-009 The specified number is not valid for this command.
...
2,423
Posted By asnandhakumar
Transpose Datefield from rows to column + Print time diff
Hi Experts,

Can you please help me in transposing Datefield from rows to column and calculate the time difference for each of the Jobids:

Input File:
08/23/2012 12:36:09,JOB_5340
08/23/2012...
4,654
Posted By asnandhakumar
hi Guru, Thanks for your quick response....
hi Guru,

Thanks for your quick response. Appreciate it.

The given command doesn't produce the required output. Actually, I'm looking at the Job_id in the 2nd column (File1) should match with...
4,654
Posted By asnandhakumar
Compare 2 files and match column data and align data from 3 column
Hello experts,

Please help me in achieving this in an easier way possible. I have 2 csv files with following data:
File1

08/23/2012 12:35:47,JOB_5330
08/23/2012 12:35:47,JOB_5330
08/23/2012...
2,080
Posted By asnandhakumar
Hi Pravin, Thanks much for your quick...
Hi Pravin,

Thanks much for your quick response. I'm receiving the following errors, when executing this code :
$ transpose.log | while read line
> do
> (dt2=$(echo $line | awk '{print $4"...
2,080
Posted By asnandhakumar
Transpose timestamp based on column values and calculate time difference
Hello Expert,

I need to transpose Date-Timestamp based on same column values and calculate time difference. The input file would be as below and required output is mentioned in the bottom

INPUT...
6,150
Posted By asnandhakumar
All the lines in the job log that match to the...
All the lines in the job log that match to the job_ids requires to be put on a csv file

Thanks,
NK
6,150
Posted By asnandhakumar
Hi Corona, Expected output would be the...
Hi Corona,

Expected output would be the list of lines that match with the job_ids that are present in the joblist.txt file.

Bascially, compare the list of job_ids present in the joblist.txt,...
6,150
Posted By asnandhakumar
File A is joblist.txt File B is job.log File...
File A is joblist.txt
File B is job.log
File C would be an extended log of job.log, which is quite huge for me to upload here.

I have tried the below script and only the list from joblist gets...
6,150
Posted By asnandhakumar
Match list of strings in File A and compare with File B, C and write to a output file in CSV format
Hi Friends,

I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...

File A has a...
Showing results 1 to 13 of 13

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