I have 1 row which contains abouts 20000 base64 string.
e.g:
/p4bdllBS8qcvW/69GUYej8nEv6gwt7UAYl0g==WZdjwTUQX9UEKsT/zWaZdQ==u
I would like rearrange this file by base64 strings. So the output should be this ( 1 string in 1 row):
69GUYej8nEv6gwt7UAYl0g==
WZdjwTUQX9UEKsT/zWaZdQ==
How could I do that from command line? I have no idea....
why did you ignore /p4bdllBS8qcvW/
?
It was a mispelling. sorry
---------- Post updated at 09:50 PM ---------- Previous update was at 09:48 PM ----------
I only wants these format:
CdxNztuyi3rsKN8bFL6ZGg==
hS5DXQypcIc/FsotY8GwUA==
Lk7X7MxDgnJB8Q2Ara4wgQ==
Lk7X7MxDgnJB8Q2Ara4wgQ==
Lk7X7MxDgnJB8Q2Ara4wgQ==
hS5DXQypcIc/FsotY8GwUA==
IZSFALe4rGELKCR6nde1bA==
zjI8M8gX2oWCp3Q0AFGAmw==
kLvYiI7exljK1FmEO/rSeA==
you want to split the data using ==
?
awk 'BEGIN{RS="=="}1' input.txt
awk 'BEGIN{RS="=="}{$NF=$NF"=="}1' input.txt
awk '{$NF=$NF"=="}1' RS="==" input.txt
Thanks. It is working
I will open another thread. But if you know the question it would be helpful.
I would like to convert this format (base64 decoded md5)
4G5qc2WQzGES6QkWAUgl5w==
P9tKxonBOg3ymr8vOBLnDA==
Lk7X7MxDgnJB8Q2Ara4wgQ==
into this (md5):
e06e6a736590cc6112e90916014825e7
3fdb4ac689c13a0df29abf2f3812e70c
2e4ed7eccc43827241f10d80adae3081
How could I do that?