Hi Friends,
Can any one help with this issue:
How to trim spaces for each line at the end,
Like I have a file in this format.
EMP1 SMITH 46373 5 STREET HOWARD 74636
EMP2 JONES 5454 { these are spaces ........}
EMP3 SMITH 46373 5 STREET HOWARD 74636
EMP4 JON 2554 { these are spaces ........}
EMP5 GARY 5345 { these are spaces ........}
EMP6 HARRY 454 { these are spaces ........}
EMP7 FRED 73 45 STREET FOLSUM 74636
I would like to trim spaces for each line at the end for each line:
It should look like this:
EMP1 SMITH 46373 5 STREET HOWARD 74636
EMP2 JONES 5454
EMP3 SMITH 46373 5 STREET HOWARD 74636
EMP4 JON 2554
EMP5 GARY 5345
EMP6 HARRY 454
EMP7 FRED 73 45 STREET FOLSUM 74636
Thanks in advance.
S