Search Results

Search: Posts Made By: hishamzz
5,087
Posted By hishamzz
You are right Rudi! It works!! My bad.. i...
You are right Rudi! It works!!

My bad.. i was looking at the same file after running the command. Was mixed up with some other thoughts at the moment.

Will run it through the entire file and...
5,087
Posted By hishamzz
Did not work unfortunately Rudi. I have...
Did not work unfortunately Rudi.

I have attached a sample file to make life easier.

Zz
5,087
Posted By hishamzz
Yes Rudi. It is a single sample record. The...
Yes Rudi. It is a single sample record.

The field count should be consistent. As in, if there are 7 fields there ought to be 6 pipes in the data and that is how you group a record as one.

For...
5,087
Posted By hishamzz
No worries Rudi! I am the needy one here hehe.. ...
No worries Rudi! I am the needy one here hehe..


0000000 32 30 31 36 2d 31 31 2d 33 30 7c 32 30 31 36 2d
2 0 1 6 - 1 1 - 3 0 | 2 0 1 6 -...
5,087
Posted By hishamzz
Hi Rudi, <CRLF> represents the binary...
Hi Rudi,

<CRLF> represents the binary control character for carriage return. ^M character from a vi perspective.

The record delimiter is <CRLF> and should remain as it is. It is the <CRLF>...
5,087
Posted By hishamzz
Replace CRLF between pipe (|) delimiter with LF
Hi Folks!

Need a solution for the following :-

Source data
-------------

123|123|<CRLF><CRLF><CRLF>|321<CRLF>


Required output
------------------

123|123|<LF><LF><LF>|321<CRLF>

...
2,050
Posted By hishamzz
Thanks loads for all your replies!! Will be...
Thanks loads for all your replies!! Will be trying them out and will let you know. Looking for the most simplistic/least processor intensive way of getting it done.

Regards,
Zz
2,050
Posted By hishamzz
sed - Search and replace within pattern
Hi Guys!

Unix newbie here!

Have a requirement for which I have been scouting the forums for a solution but has been out of luck so far :(

I have a file which contains the following:-
...
Showing results 1 to 8 of 8

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