Search Results

Search: Posts Made By: 91674io
2,544
Posted By Don Cragun
If field 4 contains semicolon terminated fields...
If field 4 contains semicolon terminated fields instead of semicolon separated fields, that is a good change. If field 4 contains semicolon separated fields as shown in you sample input, this change...
2,544
Posted By Don Cragun
If I understand your problem correctly, I don't...
If I understand your problem correctly, I don't see any need for anything but one awk script for this problem. Try:
awk '
BEGIN { FS = OFS = "|"
}
{ while(NF < 5) {
if(NF <= 1) {
# Read a...
2,544
Posted By Don Cragun
I don't see why you need to modify commas for...
I don't see why you need to modify commas for what you seem to be trying to do.

How is the <newline> (or <carriage-return><newline>) incorrectly inserted in field 4 supposed to be modified? ...
2,544
Posted By Don Cragun
What have you tried to solve this problem? I...
What have you tried to solve this problem?

I don't see anything in your description that explains why the transformations shown in red above happened. What input characters are supposed to be...
2,544
Posted By Corona688
To keep the forums high quality for all users,...
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read...
Showing results 1 to 5 of 5

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