Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: naveen@
1,147
Posted By naveen@
Could you explain what $8 and $5 do? The cmd is...
Could you explain what $8 and $5 do? The cmd is not working for me
Forum: Programming 05-25-2012
1,660
Posted By naveen@
Hi Corona Please see the code -reuse am trying...
Hi Corona
Please see the code -reuse am trying to do

INPUT
V {
port1 = P;
port2 = 0;
shift_port = P0;
port3 = 111;
reset = 1;
}
W...
1,147
Posted By naveen@
Hi Guruprasad, What if I have 100's of such...
Hi Guruprasad,

What if I have 100's of such back to back blocks. I guess it will only find the first and last occurrence of test.

Can you suggest something that searches for every pair of Test...
1,147
Posted By naveen@
Grab data between 2 keywords any do an array operation and write the file intact
Hi Unix Gurus,

I need to grep for a block that is between a start and end keyword and then in between I need to find and replace a keyword.

for eg: I need to search between Test = 000; and...
Forum: Programming 02-28-2012
1,660
Posted By naveen@
Thanks Corona, This isnt a homework problem. I...
Thanks Corona,
This isnt a homework problem. I wanted to edit some vectors at work and was struggling so seeked your help
Sorry abt the duplicate post
2,811
Posted By naveen@
Thanks Birei and Corona, This isnt a homework...
Thanks Birei and Corona,
This isnt a homework problem. I wanted to edit some vectors at work and was struggling so seeked your help
2,811
Posted By naveen@
I wanted a perl and shell script. So you were...
I wanted a perl and shell script. So you were helping me with awk and Birei was with perl. So i didnt delete the duplicate post. Initially I didnt know which category I should have posted. sorry...
Forum: Programming 02-28-2012
1,660
Posted By naveen@
Hi Corona688, Sorry about the confusion and...
Hi Corona688,

Sorry about the confusion and lack of clarity
If port3 is 1 i wouldnt want to replace current and next line. Only if port3 is 0 i would like to replace current P0 with M0 and next...
2,811
Posted By naveen@
Sorry about the lack of clarity and also not...
Sorry about the lack of clarity and also not specifying the requirements upfront. I edited the improvement requested above to make it clear.
Thanks in advance for your help
Forum: Programming 02-27-2012
1,660
Posted By naveen@
Awesome. ! it works perfect. Thanks for you...
Awesome. ! it works perfect.
Thanks for you quick reply

---------- Post updated at 04:49 PM ---------- Previous update was at 08:45 AM ----------

Hi Corona,

I need another small...
2,811
Posted By naveen@
Hi Birei, I need another small improvement...
Hi Birei,

I need another small improvement in the code

Say the input file is the one below. I need to replace 1st P0 with M0 and second with 00 if and only if the value of port3 is not 1 on...
2,811
Posted By naveen@
Perl: Conditional replace based on previous and current value in a line
I need to read the contents of a file. Then I need to grep for a keyword and replace part of the grepped line based on the condition of previous and present line.


Example input file:
V {
...
Forum: Programming 02-27-2012
1,660
Posted By naveen@
Conditional replace after reading in a file
I need to read the contents of a file. Then I need to grep for a keyword and replace part of the grepped line based on the condition of previous and present line.


Example input file:
V {
...
5,847
Posted By naveen@
Thanks everyone !!! It is finally working.. !
Thanks everyone !!! It is finally working.. !
5,847
Posted By naveen@
Done.. Here is what i Got [naveen]: head f ...
Done.. Here is what i Got

[naveen]: head f
18277 ABC.hyuns.heksd.ut.mestyue_i.mestnem_i.etl1soo__GHytnem__7_0_etl1_mijyt_m_ps_4_...
5,847
Posted By naveen@
No luck yet :( But The output posted by him is...
No luck yet :( But The output posted by him is exactly what I need.
5,847
Posted By naveen@
Do i have to put this is an script? because when...
Do i have to put this is an script? because when I try the same command it returns nothing. and the perl package is installed in /bin/perl on my system
5,847
Posted By naveen@
Code update
Ok this is the actual file. Now you might understand why awk wont work. as the fields are not constant due to spaces in between.


18277...
5,847
Posted By naveen@
the awk '{print $1, $2}' file command doesnt take...
the awk '{print $1, $2}' file command doesnt take care of the spaces. As the 2nd key word is not constantly present in the 2nd column, if you carefully observe my code.

---------- Post updated at...
5,847
Posted By naveen@
I need it to work for lines without quotes as...
I need it to work for lines without quotes as well :(
5,847
Posted By naveen@
Grep between 2 patterns in a line
Hi
I have a file containing 1000+ lines of netlist data.

I need to search for text between two key words on each line

for e.g my input file has

...
2,501
Posted By naveen@
Line by Line Comparision of 2 files and print only the difference
Hi,

I am trying to find an alternative way to do tkdiff. In tkdiff the gui compares each line and highlights only the differences.

for eg:


John works at McDonalds s(test)
He was...
1,483
Posted By naveen@
Thanks a lot Jim. Is there a way to check...
Thanks a lot Jim.

Is there a way to check just the number of lines it has deleted from fileA. I.e something like tkdiff fileA filtered_fileA will highlight the lines deleted in gui mode.

But as...
1,483
Posted By naveen@
Sorry about that Jim, I took care of it. ...
Sorry about that Jim,

I took care of it.

Thanks
Naveen
1,483
Posted By naveen@
File processing
Hi guys,I have 2 sets of files. File A has around 4 million lines. The format is

fileA

test.term.n4814 test.term.n3199
test.term.n4814 test.term.n4803
test.term.n4814 test.term.n_1767...
Showing results 1 to 25 of 36

 

Featured Tech Videos

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