Search Results

Search: Posts Made By: kmajumder
3,142
Posted By kmajumder
Hi Don, Thank you for your cooperation. Here...
Hi Don,

Thank you for your cooperation. Here I am trying to list the answer of your questions.

grep -e linkId=1ddoic abc-2012-10-01_000* | cut -f 2,5,14 | awk '{$1=$1;print}' OFS=, >...
2,913
Posted By kmajumder
Yes. I have figured out that. I just need to know...
Yes. I have figured out that. I just need to know how I modify the same CSV file while reading it.
2,913
Posted By kmajumder
Reading from a CSV and writing in same CSV file
Hi,

I am tryng to read from a csv file and based on some grep command output I will modify one of the column in the same csv.

Example:-

Input CSV:-
20120829001415,noneAA,google.com...
3,142
Posted By kmajumder
Hi Don, I am trying my best. This is my...
Hi Don,

I am trying my best.
This is my first grep command.
grep -e linkId=1ddoic abc-2012-10-01_000* | cut -f 2,5,14 | sort| uniq
1. yes. Though the initial fields(upto 10th column) are...
3,868
Posted By kmajumder
Hi Corona, Thank you for your reply. I am...
Hi Corona,

Thank you for your reply.
I am a newbie in unix. It would be very helpful if you explain your code little bit. I did not understand how do I run the loop through all the log files.
...
3,868
Posted By kmajumder
Conditional grep command to search entire file
Let me give you a complete example what I am trying to achieve.

1. Below is the log file structure where I need 2,5 and 14th column of the logs after grepping through the linkId=1ddoic.

Log...
3,142
Posted By kmajumder
Sorry for the confusion
Let me give you a complete example what I am trying to achieve.

1. Below is the log file structure where I need 2,5 and 14th column of the logs after grepping through the linkId=1ddoic.

Log...
3,142
Posted By kmajumder
Hi tyler, 1. 'abcde' and 'efghi' wont be...
Hi tyler,

1. 'abcde' and 'efghi' wont be there in original data. That is what I tried to explain.
The original data is not having the expected value. 'none1111' is the default value if no proper...
3,142
Posted By kmajumder
Reading and writing in same file
Hi All,

Here is my requirement. I am grepping through the log files and cutting some fields from the file to generate a csv file. Now I have to check if 2nd field is having some fixed value then...
3,032
Posted By kmajumder
How to run java from shell
Hi All,

I am trying to run a grep command which creates an output file.

Then I will run a java file which take that file and process that. My java file uses other java files and library jars....
2,018
Posted By kmajumder
I think I did not make my requirement clear. ...
I think I did not make my requirement clear.
The answers seems all looking for 20th August not more than that.
Let me give you one example:-

Suppose today is 28th August, So To_Date is 28th...
2,018
Posted By kmajumder
How to search log file from a date
Hi All,

I want to grep through all the log files created from 20th August. How do I do that? My script will run everyday. So it will take current date as To_Date.

My log file name looks like -...
12,333
Posted By kmajumder
Hi bakunin, 1. I have bunch of log files. I...
Hi bakunin,

1. I have bunch of log files. I have to look for all the logs from 20th August onwards by seeing their timestamps.
2. Now what I have to look for is:
i) 15 different keywords in...
12,333
Posted By kmajumder
Yes. I am. And also other excel files are...
Yes. I am.
And also other excel files are looking fine except those I create from linux by those grep commands.
12,333
Posted By kmajumder
Hi bakunin, Thank you for the reply. But I...
Hi bakunin,

Thank you for the reply. But I do not think there is any encoding issue. Everything looks great.
The issue is the values are appearing in one column(with , delimited) instead of...
12,333
Posted By kmajumder
Actually you know what once I create this file...
Actually you know what once I create this file from Linux then using Java I am reading that created excel/csv file and it is failing there.
Exception is "Unable to read entire header". And what I...
12,333
Posted By kmajumder
Hi RudiC, I am sorry for the confusion. I am...
Hi RudiC,

I am sorry for the confusion. I am using Linux Ubuntu. And the output is not one column, because count will also appear.
So my desired output is like below:

count, field

10,...
12,333
Posted By kmajumder
How to redirect in comma separated csv from grep
Hi,

I am newbie in unix.
Could someone tell me how do I redirect my grep output to a csv/excel ?
I have used below command but the outputs are appearing in one column Not in different column....
1,669
Posted By kmajumder
Thanks a lot agama. Its working as I expected. ...
Thanks a lot agama. Its working as I expected.
Could you please explain the code. I am newbie to Linux. So it would be very helpful for me if you kindly explain the code.

Thanks again.

KM
1,669
Posted By kmajumder
Reading block by block in XML
Hi ,

Can you pleas help me with below requirement?
There is only one big line in the file. I need to parse block by block(particular tag values, 'Val' in below case) to get different parameters....
1,344
Posted By kmajumder
Thank you for the explanation. Got it.
Thank you for the explanation. Got it.
1,344
Posted By kmajumder
HI elixir_sinari, Thanks a lot for your...
HI elixir_sinari,

Thanks a lot for your code. It is working as expected.
Can you give a little more time explaining your code, so that I can modify according my new requirements? What I did not...
1,344
Posted By kmajumder
Show distinct values of a key from a single line
Hi All,

I am newbie to linux. Can somebody help me with following requirement.

I have one huge line. I have to find out particular key/value pair to see the distinct value of that key.
...
Showing results 1 to 23 of 23

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