DiscoPants
Programmer
Hello, I wonder if anybody can help. I have a large awk program which outputs a list of characters with any number of null spaces between them follwed by a varying number of null spaces., I need to format the output so as to just show the field without the trailing spaces.
For example, I may have:-
'Ab cde fghijk l mnop qr s '
And need to print
'Ab cde fghijk l mnop qr s'
Is there a simple way of doing this, At the moment I can only thing of reading into an array and counting back til I hit the last character
Cheers
For example, I may have:-
'Ab cde fghijk l mnop qr s '
And need to print
'Ab cde fghijk l mnop qr s'
Is there a simple way of doing this, At the moment I can only thing of reading into an array and counting back til I hit the last character
Cheers