Editing lines from vertical to horizontal format
-
I have a file like this
username=1342910590
password=0985175697
username=jamalnajjar2026
password=462546564152I want to modify it to look like this:
username=1342910590:password=0985175697
username=jamalnajjar2026:password=462546564152 -
If the pairs are always in the right order, then search for
\Rpasswordand replace with:passwordin Search Mode = Regular Expression mode.(PS: I sincerely hope that you gave a simple dummy example, and that your data fields are not username and password, really. If your system really stores usernames and passwords in plain text like that, then you have a security issue, and you need to talk with whoever is in charge of that data.)
-
@PeterJones
ok man
Thank you, the method worked.
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