How can I remove in a txt file all the spaces in each line after the last character?
-
How can I remove in a txt file all the spaces in each line after the last character?
E.g. in a txt file:
1 A single line
2 A single line with different lengths
3 A single line with different lengths, charactersSo remove all spaces in the 1. line after the last “e”, in the 2. after the last “s” and in the 3. after the last “s”.
-
-
Hello @cletos and All,
I think that @andrecool-68 made a little mistake in his answer !
From your post, you’ll have to perform the option :
Edit > Blank Operations > Trim Trailing Space
Best Regards,
guy038
-
With that solution, you’ve give the OP more than they’ve asked for. The better operation, to do only what was required, is this one:
-
Thank you, andrecool-68,
Works great.
Hello guy038,
That option does it very good as well, thank you. Thanks Alan.