I have a below file 

```
ABCD|12345|N|YES  
ABCDEFGH|12344444|NO|YES  
AB|12|N|Y   

```

I want the output as below 

```
ABCD                12345      N   YES  
ABCDEFGH            123444444  NO  YES  
AB                  12         N   Y  

```

Basically need to format this in a good readable format. Like a table. (Here spaces are not exactly coming as I want)