Search Results

Search: Posts Made By: Lakshmikumari
3,605
Posted By Lakshmikumari
Merge columns from two files using awk
I have two csv files : say a.csv, b.csv
a.csv looks like this :


property1,property2,100
property3,property4,200
In a.csv, the combination of column1 and column2 will be unique


b.csv...
1,225
Posted By Lakshmikumari
Thanks a lot to everyone who replied. It really...
Thanks a lot to everyone who replied. It really helps :)
1,225
Posted By Lakshmikumari
Parsing a file with different patterns
I have a text file like this , where the same set of three lines repeat with different values.


INFO: processing now 03/25/2015-00:06:05 03/25/2015-00:16:04
------Invoking myexe table=table1 ...
10,423
Posted By Lakshmikumari
Can you pl. explain the logic used.
Can you pl. explain the logic used.
1,283
Posted By Lakshmikumari
"block1":"block_111" "tabId": "table_0", ...
"block1":"block_111"
"tabId": "table_0",
"title":"My title"
..... ....
}]
"block1":"block_111"
"tabId": "table_1",
"title":"My title"
..... ....
}]
"block1":"block_111"
"tabId":...
1,283
Posted By Lakshmikumari
Add a block of code at the end of a specific block
I need to search for a block with the starting pattern say
"tabId": "table_1", and ending pattern say "]"
and then add a few lines before "]"

"block1":"block_111"
"tabId": "table_1",...
1,207
Posted By Lakshmikumari
# uname -a Linux auto172a20-116-91...
# uname -a
Linux auto172a20-116-91 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

# date --version
date (GNU coreutils) 5.97
Copyright (C) 2006 Free...
1,207
Posted By Lakshmikumari
Timezone and date +%s command
DST started on Oct 20th in Brazil.
If I run the below command in that time zone,
date +%s -d "10/20/2013" it throws an error message "Invalid date" . But it works fine for other dates including...
2,159
Posted By Lakshmikumari
I want the xml file with that block commented out...
I want the xml file with that block commented out or removed.

---------- Post updated at 05:21 AM ---------- Previous update was at 05:19 AM ----------




This didn't work. What I wanted is...
2,159
Posted By Lakshmikumari
Commenting a block of code in xml where the tags may be similar
I want to comment a block of code in xml. Note that the tags will be similar. In the below xml code, I want to block the listener block for com.pkg1.class2. How do i do it ?

Thanks in Advance

...
1,726
Posted By Lakshmikumari
Thanks, That solved my problem.:)
Thanks, That solved my problem.:)
1,726
Posted By Lakshmikumari
Need awk/sed command to pull out matching lines from a block
Hi,

In order to make our debugging easier in log files, I need this script.
My log file will be structured like this :

------Invoking myfile -param:start_time=1371150900000...
5,493
Posted By Lakshmikumari
Wonderful. Thanks. It works.:)
Wonderful. Thanks. It works.:)
5,493
Posted By Lakshmikumari
awk - how do i get the last row of a group
How do i print the last record of a group in a file ?

For example, I have a file like this :
cat txt
cucm1,location1,1,2,3
cucm2,location1,3,4,5
cucm1,location1,10,20,30...
1,934
Posted By Lakshmikumari
Difference of the same column when two other column matches and one column differs less than 1 hour
This is my input file :


# cat list 20130430121600, cucm, location,76,2 20130430121600,cucm1,location1,76,4 20130430122000,cucm,location,80,8 20130430122000,cucm1,location1,90,8...
1,256
Posted By Lakshmikumari
yes. If the third and fourth column matches need...
yes. If the third and fourth column matches need to get the difference of 6th column
1,256
Posted By Lakshmikumari
How to get difference of the same column between two files when other column matches?
File 1:
20130416,235800,10.78.25.104,BR2-loc,60.0,1624,50.0,0,50.0,0
20130416,235800,10.78.25.104,BR1-LOC,70.0,10,50.0,0,70.0,0
20130416,235800,10.78.25.104,Hub_None,60.0,15,60.0,0,50.0,0

File...
1,436
Posted By Lakshmikumari
Thanks a lot, Guru. It works. Thanks again. ...
Thanks a lot, Guru.
It works.
Thanks again.

Can you please explain your code snippet ?

---------- Post updated at 04:20 AM ---------- Previous update was at 03:54 AM ----------

How will I...
1,436
Posted By Lakshmikumari
awk -F"," '/cucm1,location1/ {print $1, $2, $3,...
awk -F"," '/cucm1,location1/ {print $1, $2, $3, $4, $4-prev;prev=$4;}' list
1,436
Posted By Lakshmikumari
awk - how to get difference of the same column when other column matches
I have a file like this :
# cat list
cucm, location,76,2
cucm1,location1,76,4
cucm,location,80,8
cucm1,location1,90,8
cucm1,location1,87,11
cucm,location,67,9

and I want output like this :...
Showing results 1 to 20 of 20

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