Search Results

Search: Posts Made By: elamurugu
2,378
Posted By elamurugu
Print columns from each row
I have awk command to print column 8

awk '/select/ {print $8}'
which will print column 8

But I need to print 3, 5 and 8 column in a row and each column should be de-limited by "\t"

Hope...
11,152
Posted By elamurugu
Each line length is not fixed...It may vary.. so...
Each line length is not fixed...It may vary.. so Anurag your solution will not fits to my problem.

I want to perform operation across million rows. so awk/sed will provide better performance.
...
11,152
Posted By elamurugu
Remove text from n position to n position sed/awk
I want to remove text from nth position to nth position couple of times in same line

my line is
"hello is there anyone can help me with this question"

I need like this

ello is there anyone...
5,234
Posted By elamurugu
When going with the above script if any of the...
When going with the above script if any of the column/search string is not available (on f) I need to print NULL for the variable.

say for example if i don't find 'rel' & 'bod' in the line while...
2,588
Posted By elamurugu
Is there anyway to to start numbering rows from...
Is there anyway to to start numbering rows from specific number..

Like start by 1 and increment by 1.

Like start by 899 and increment by 1.
4,928
Posted By elamurugu
Error PHP Fatal error: Allowed memory size of 67108864 bytes exhausted(tried to allocate 401 bytes)
While running script I am getting an error like



Few lines in data are not being processed.

After googling it I came to know that adding such line would give some memory to it...
5,258
Posted By elamurugu
Thank you..its inspiring me to learn more..you...
Thank you..its inspiring me to learn more..you guys ROCK!
5,258
Posted By elamurugu
awk-gsub on column-wise on each row
awk '{ gsub(/....=/,""); print }' want.dat >final.dat

the above awk command which removes all the chars before and including '=' on the entire row. --thats what it meant be.:)

but i need to...
2,588
Posted By elamurugu
Thank U ...awk will gear up my performance.:b:
Thank U ...awk will gear up my performance.:b:
5,234
Posted By elamurugu
Thanks Frans for your explanation...Its good day...
Thanks Frans for your explanation...Its good day for me to learn such kind of scripting. Thanks a lot.
2,588
Posted By elamurugu
Add key column to the row
I have source like this with tab delimited
Jon Newyork 7024051234 jon@email.com
eric Newjersy 5021236541 eric@email.com
johnson Baltimore 9142013210 john@email.com

I want to add key column to...
5,234
Posted By elamurugu
Wow...Simply amazing...If you could explain the...
Wow...Simply amazing...If you could explain the syntax that would be great!
5,234
Posted By elamurugu
My Source fields are aligned improperly back &...
My Source fields are aligned improperly back & forth

poc=4060&mjv=6&mov=5&roc=1&ps=R&ooc=13&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=&drc=&mo=&sid=&lang=ja&loc=JPN...
5,234
Posted By elamurugu
Split into columns based on the parameter and use & as delimiter
Here is my source, i have million lines like this on a file.
disp0201.php?poc=4060&roc=1&ps=R&ooc=13&mjv=6&mov=5&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=& drc=&mo=&sid=&lang=EN&loc=JPN

I...
1,029
Posted By elamurugu
Simply works great !! Thanks, EM
Simply works great !!

Thanks,
EM
1,029
Posted By elamurugu
I want a count only when couple of value exist in each line of my source.
I have to get the count only if poc=4060 and loc=JPN ( basically I want to check both values exist then count the occurrences.)

...
14,298
Posted By elamurugu
Using the above command I am getting Output as ...
Using the above command I am getting Output as
"GET

I need text from disp to blank space

disp0201.php?poc=4060&roc=1&ps=R&ooc=13&mjv=6&mov=5&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=&...
14,298
Posted By elamurugu
awk or sed command to print specific string between word and blank space
My source is on each line

98.194.245.255 - - [29/Nov/2010:16:59:59 -0700] "GET...
3,678
Posted By elamurugu
its not working.. :( files are being printed...
its not working.. :(
files are being printed but there is no count for my specific word.
3,678
Posted By elamurugu
Need script to count specific word and iterate over number of files.
Hi Experts,

I want to know the count of specific word in a file. I have almost 600+ files.

So I want to loop thru each file and get the count of the specific word.

Please help me on...
Showing results 1 to 20 of 20

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