Solved Formatting exported WhatsApp Chats

How do people format exported WhatsApp Chats?

I tried a few suggestions AI suggestions but they weren't particularly useful.

One suggestion was:

sed 's/^\[\(.*\)\] \(.*\):/\1 - \2:/' chat.txt > clean.txt

Any other suggestins?
 
I don't even know what is the Whatsapp layout, what you have in and what you want out ?

To manage this you could use various tools or languages : grep, sed, awk, C, Perl ... According to the complexity of the work to get done.
 
I don't even know what is the Whatsapp layout, what you have in and what you want out ?

To manage this you could use various tools or languages : grep, sed, awk, C, Perl ... According to the complexity of the work to get done.

Actually it's very straightforward once exported:

16/05/25, 13:57 - +1 (424) 303-9930: Hi

Basically timestamp, '-' WhatsAppID ':' message

I think I should be able to handle that fairly easily.
 
If you want to grab the text cut everything before ':' + space

Code:
# echo '16/05/25, 13:57 - +1 (424) 303-9930: Hi' | sed 's|^.*: ||'
Hi

( I prefer to use the | separator rather than /, this avoids having to escape \/)
 
Back
Top