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 SpaceBest 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login