0

I have a record as below

1, "All of the following:

ElectronicLF Fax machineLF Hard CopyLF In PersonLF Mail DeliveryLF Telephone",No,ImmediateCRLF**

I have to replace LineFeed (LF) in above record with space except when at the record end (as soon as when i find Carriage Return).

Please guide me to do it in unix.

Venkat J
  • 305
  • 1
  • 4
  • 12
  • https://en.wikipedia.org/wiki/Newline , LineFeed in Unix or Unix-Like system is `\n`. Just to search `\n` and replace with space. – kgbook Sep 11 '18 at 13:56
  • It's replacing at the end of the record also, I should not replace LineFeed after CR – Venkat J Sep 11 '18 at 14:05

0 Answers0