Search Results

Search: Posts Made By: bumblebee_2010
1,800
Posted By bumblebee_2010
Replace text based on column
Replace these if the column is -
p = q
q = p
r = s
s = r

input

- PQRSSP
+ PQRS


output

- QPSRRQ
+ PQRS



Some thing,like
2,228
Posted By bumblebee_2010
One last thing. Your script is great working...
One last thing.
Your script is great working wit matching and finding YCDY/YDCY or others.
Is it possible to change the script to print the output that is not matched to YCDY/YDCY .....
I tried ...
2,228
Posted By bumblebee_2010
working very well. Though it still not picking...
working very well.
Though it still not picking some thing like this

ACDBCDY = this contains 2 integrated "CD"s

ACDB
BCDY

or vice versa with others. script is giving ACDB not BCDY.
2,228
Posted By bumblebee_2010
Yes. Sorry for not doing that in previous post ...
Yes. Sorry for not doing that in previous post

For example Take [a1 26610463 26610660 name1 ] and it should print all the letters that has "DC" inside(bold ) but It could pick few...
2,228
Posted By bumblebee_2010
Hey I think the previous code is throwing several...
Hey I think the previous code is throwing several errors. Could you please take a look.
For ex: like this input I'm not getting all the output values correctly


a10 123233201 123233307 ...
2,796
Posted By bumblebee_2010
thank you very very much for sharing the code but...
thank you very very much for sharing the code but it unable to process fe of them (pointed in bold).

input1

c1 18 50 XXX
c1 20 100 XXX
c1 20 100 YYY...
2,796
Posted By bumblebee_2010
Oh
I know why because my input1 actually very big with specific keys (column 4) not just one line

Ex:

cat input1
c1 20 100 X_y10
c1 20 100 X_y11
c1 20 100 ...
2,796
Posted By bumblebee_2010
not working
I'm afraid not working
2,796
Posted By bumblebee_2010
haa..No It is not the closest highest of 20...
haa..No

It is not the closest highest of 20 and 100.

100 and 200 is the closest-highest.
20......100..100......200

and closest- lowest
10......5....20.......100
2,796
Posted By bumblebee_2010
Comparing 2 input files -Awk
Compare 2 files and print the values input1 (c1 20 100 X_y10) along with one closest highest (c1 100 200 X_y10) and one lowest values (c1 10 15 X_y10) from input2

input1

c1 20 100 X_y10
...
2,228
Posted By bumblebee_2010
Thats helpful and handy . And about second...
Thats helpful and handy .
And about second question ?
2,228
Posted By bumblebee_2010
yes perfect
/.CD./ - Thanx for solving this and modifying code in your own way.

1. Is it possible to print the orginal pattern like ACDB instead of YCDY + or BDCA -

2. The important thing I'm looking for...
2,228
Posted By bumblebee_2010
Awk- How to extract duplicate expressions
How to extract duplicate expressions ? CD of c4

input

c3 100 120 TF03_X2 + AABDDAAABDDBCBACDBBC
c4 100 120 TF03_X3 + ...
3,802
Posted By bumblebee_2010
hi
It is not.
I'm new to shell scripting.
I tried to grep specific patterns before I posted. I was successful with individual specific pattern extracting. But I want the same in a global scale.

My...
3,802
Posted By bumblebee_2010
Awk -simple pattern matching
Find bumblebee and Megatron patterns (input2) in input1.
If it is + read input1 patterns from Left to Right
if it is - read input1 patterns from Right to Left
Y= any letter (A/B/C/D)


input1...
Showing results 1 to 15 of 15

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