Search Results

Search: Posts Made By: krao
3,171
Posted By krao
Thanks to Yazu & drl, drl, "grep -A1 -B1 "...
Thanks to Yazu & drl,

drl, "grep -A1 -B1 " will not work in my server.

Yazu, when i tried the command, got ouput as below.

perl -00 -lne '/threshold/ && s/\n//g && print' uni_op
ABCD ...
3,171
Posted By krao
Thanks to guruprasadpr & rwuerth. I have...
Thanks to guruprasadpr & rwuerth.

I have tried both of the commands, but output is not comming as required.

Kindly help me :)
3,171
Posted By krao
Help required on joining one line above & below to the pattern matched string line.
Hi Experts,

Help needed on joining one line above & below to the pattern matched string line.

The input file, required output is mentioned below

[Input file
ABCD DEFG5 42.0.1-63.38.31...
1,900
Posted By krao
Hi radoulov, Thank you very much :) Can...
Hi radoulov,

Thank you very much :)

Can you pl help me by guiding the same in perl. I need a perl script
1,900
Posted By krao
Columns comparision of two large size files and printing the difference
Hi Experts,


My requirement is to compare the second field/column in two files, if the second column is same in both the files then compare the first field. If the first is not matching then...
2,252
Posted By krao
Thanks vidyadhar, As you said this is...
Thanks vidyadhar,

As you said this is working only for consecutive lines , but my input file has many ranges which are not consecutive. when i tried for below sample input,output is not comming...
2,252
Posted By krao
Help required on Printing of Numbers, which are missing in the range
Hi Experts,

Need help on printing of numbers, which are missing in the range.

Pls find the details below

Input

1000000002
1000000007
1234007940
1234007946

Output

1000000003...
2,332
Posted By krao
Hi malcomex999, When i executed awk 'NF>2'...
Hi malcomex999,

When i executed awk 'NF>2' inputfile . i am getting ouput file same as input file. It is not working for my requirement.


INPUT FILE[/B]

dcdccghjrry0yd cont ...
2,332
Posted By krao
Help required on printing the line if third field is not a empty space
Hi Experts,

I want to print the lines whose third field in non-empty/blank space.

i.e.
INPUT FILE

dcdccghjrry0yd cont
dcdccttrk820529 cont ...
4,666
Posted By krao
Thanks a lot Its working
Thanks a lot
Its working
4,666
Posted By krao
Thank you very much JIM, It's working. ...
Thank you very much JIM,

It's working.

Pls do one more favor to me, I want to run above one as script, pls tell me what changes to be done inorder to give pattern at the begining instead of...
4,666
Posted By krao
Pattern matching and Printing Filename
Hi,

My requirement is to search for a paritcular string from a group of .gz files and to print the lines containing that string and the name of the files in which that string is present.

Daily...
3,413
Posted By krao
above awk code is not working, pls help me
above awk code is not working, pls help me
3,413
Posted By krao
help on egrep
HI,

I have two files filea, fileeb


filea
z283110z67
xx65686377
xx654681zz
xx652836xx
xx653881zz
xx65480z11
xx654z5466
xx65510000
xx65670000
xx656z0000
xx656z1822


fileb
4
2,511
Posted By krao
thanks vgersh99, it is working can u plz...
thanks vgersh99, it is working

can u plz explain , how does ur code works bcoz i am new to nawk.
4
2,511
Posted By krao
hi incredible above is not working
hi incredible
above is not working
4
2,511
Posted By krao
egrep
HI,

I want to grep the contents of fileb from filea.

filbeb
5x4xxx371x31a43
4x40x037103a049
3x4x003710a0659
4x4x0x371a50912


filbea
5x4xxx371x31a43 3266000225
4x4003266000277...
84,313
Posted By krao
hi nazeeb, can u provide a sample input , in...
hi nazeeb,

can u provide a sample input , in that plz specify what delimiters you are using like , = : ... etc. so that i will try to help you in nawk code
5,837
Posted By krao
Thanks Franklin52,:) hi anchal_khare, u...
Thanks Franklin52,:)

hi anchal_khare,

u can also check the below code

awk '{n=1;while( n<=length($0)) { t = substr($0,n,4); print t"\n"; n= n+4} }' Filename

Input:...
84,313
Posted By krao
donot qoute the variable in the filename
Hi Nazeeb, :)

check the below code

awk '{ print $17 > "output_"$25".txt" }' input
Forum: Solaris 02-14-2008
2,616
Posted By krao
hi Salathi, hope this will work for u, ...
hi Salathi,

hope this will work for u,

awk -F, '{ if (length($2) == 9) {print $1",""X"$2","$3;} else { print $0}}' filename
Showing results 1 to 21 of 21

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