Search Results

Search: Posts Made By: ureddy
Forum: AIX 03-29-2017
3,429
Posted By ureddy
Hi Don, yes, global substitution twice will...
Hi Don,

yes, global substitution twice will resolve the issue :b: . Sorry I over looked your solution.
Forum: AIX 03-29-2017
3,429
Posted By ureddy
Running the sed twice will also fixing the issue...
Running the sed twice will also fixing the issue but the there are chances that the string will repeat more than twice also and hard to identify how many times the string will repeat in the file. ...
Forum: AIX 03-28-2017
3,429
Posted By ureddy
Hi Scott, thank you for checking this issue....
Hi Scott,
thank you for checking this issue. your solution is working for most of the cases of my input file but its giving issue if the data as below.

Input:
123.5|ABC.|.|.|....
Forum: AIX 03-28-2017
3,429
Posted By ureddy
Replace consecutive occurrence of string in same line
Hi All,

I have a requirement to replace consecutive occurence of same string nedd to be replaced. Below is the input and desired output.

Input:
---------
123.5|ABC|.|.|.
234.4|DEF|.|.|.|.|.|...
1,235
Posted By ureddy
Hi RudiC, working perfectly :-) . Thank you...
Hi RudiC,

working perfectly :-) . Thank you so much for this help.

Regards,
Ureddy
1,235
Posted By ureddy
Hi, Thanks for looking into this. I...
Hi,

Thanks for looking into this. I corrected the output and here it is.

TEXAS CALIFORNIA TX|Y
DALLAS CALIFORNIA CALIFORNIA DA|Y
DALLAS TEXAS TX DA|Y
NEW YORK NEW YORk



----------...
1,235
Posted By ureddy
Hi robin, This is real time problem and not...
Hi robin,
This is real time problem and not home work.
I want to achieve this in sed or awk as the data is in millions.
I tried sed but it's replacing correctly but appending the string '|Y' for...
1,235
Posted By ureddy
Replace string and append Indicator to end of record in Linux
Hi All,

Could you please help me to achieve below solution.

I have a FILE1.txt as below.TEXAS CALIFORNIA TEXAS
DALLAS CALIFORNIA CALIFORNIA DALLAS
DALLAS TEXAS TEXAS DALLAS
NEW YORK NEW...
1,592
Posted By ureddy
Hi,thanks for looking in to this. Here is the...
Hi,thanks for looking in to this. Here is the code.



echo "Replace the string matches only once or except FIRST occurence replace ALL."

tot_cnt=`wc -l < $REP_FILE_PATH/$REP_FILE`
...
1,592
Posted By ureddy
Linux shell programming performance issue
Hi All,

can any one help me on this please.

Replace sting in FILE1.txt with FILE2.txt. FILE1.txt record must have at least one state is repeated once.But need to replace only from second...
2,288
Posted By ureddy
hi, there are two cases here. 1. print...
hi,

there are two cases here.
1. print the string which occurs more than once into seperate file
2. Print the string which occurs only once into seperate file

so need to capture the output...
2,288
Posted By ureddy
thanks for the reply. but i need to print the...
thanks for the reply. but i need to print the lines
2,288
Posted By ureddy
Print only match pattern
Hi,

I want to print the lines from file1 which has the matching pattern from file2 in linux.

file1 data is below
-----------------
CACA|1234
CA|2345

file2 data is below...
1,845
Posted By ureddy
Can any one help me on this please.
Can any one help me on this please.
1,845
Posted By ureddy
Actually I was reformatting(remove temp files and...
Actually I was reformatting(remove temp files and parameters) my code to make it run fast so looks I deleted "rep_line". Here is the corrected code.

echo "Replace the string matches only once or...
1,845
Posted By ureddy
..................
..................
1,845
Posted By ureddy
Thanks for looking into this Robin. I have added...
Thanks for looking into this Robin. I have added code as you specified now.
1,845
Posted By ureddy
Performance issue in shell script
Hi All,


I am facing performance issue while rinning the LINUX shell script.

I have file1 and file 2. File one is the source file and file 2 is lookup file. Need to replace if the pattern...
Showing results 1 to 18 of 18

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