cut

A data looks like this... which is of single line...

'[ [issuedTo CN= Class 1 Public Certification Authority , OU="(c) , Inc. - For authorized use only", OU= Trust Network, O=" , Inc.", C=US] [fingerPrint [ )] [serialNumber ] [alias class 1 public primary certification authority - g] [validity Valid from .] [version 1] [issuedBy CN= Class 1 Public Primary Certification Authority - ="(c)  , Inc. - For authorized use only", OU= Trust Network, O=" , Inc.", C=US] [ ] ]\n[ [issuedTo CN= - ,OU="(c) , Inc. - For use only", OU= Trust Network, O=" , Inc.",] [] 

i want to cut this line... when ever "[issuedTo" comes in this line as two separate lines ...

Request for the assistance...

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 your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

*********************************************************

Something like this?

sed 's/\[issuedTo/\n\[issuedTo/g' infile