Search Results

Search: Posts Made By: chandrath
1,898
Posted By chandrath
@wbport, thank you!The 1234 record may not have a...
@wbport, thank you!The 1234 record may not have a new line chars too.. The updated sample input file:

1123xxsdfdsfsfdsfds
1234ddfxxy
fffrrr
1123dfdffdfdxxxxxxxxx
1234ydfyyy
zmkn...
1,898
Posted By chandrath
Views How to replace a CRLF char from a variable length file in the middle of a string in UNIX?
My sample file is variable length, with out any field delimiters. It has min of 18 chars length and the 'CRLF' is potentially between 12-14 chars. How do I replace this with a space? I still want to...
4,405
Posted By chandrath
Don, Appreciate all your help! Is there a way...
Don,
Appreciate all your help!
Is there a way to improve performance of this script? Currently it's taking 1hr to process 200,000 source records with around 1000 records in rules file.

Thank you!
4,405
Posted By chandrath
Don, Thanks for your inputs. One help on...
Don,

Thanks for your inputs.
One help on 'Equals' rule, it should replace the value only when the source field value is matching with the rules field value. Sorry, earlier I gave wrong output...
4,405
Posted By chandrath
Thanks Don! My system Locale : ...
Thanks Don!

My system Locale :
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"...
4,405
Posted By chandrath
Don, Thank you very much. I did some changes,...
Don,
Thank you very much.
I did some changes, and it's working fine for English char data. But, when I have international language data in the input file, getting into below error:
FNR=2) fatal:...
4,405
Posted By chandrath
Don, Thank you very much for your valuable...
Don,

Thank you very much for your valuable inputs and comments!. Appreciate all your help!
I had slight variation in the rules file when there is a rule for a field that do not exist in input, as...
4,405
Posted By chandrath
Don, - The field separator is pipe (|). My...
Don,
- The field separator is pipe (|). My apologies for not putting that in the initial post.
- Yes, The reject file is supposed to contain the original contents of every line that was changed...
4,405
Posted By chandrath
Shell script for search and replace by field
Hi,
I have an input file with below data and rules file to apply search and replace by each field in the input based on exact value or pattern.
Could you please help me with unix script to read...
Showing results 1 to 9 of 9

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