Last active
January 11, 2017 17:49
-
-
Save jesseadams/fdef90ded557c1f66b136296731fd128 to your computer and use it in GitHub Desktop.
Awk script to convert a raw SMS conversation to a readable, printable format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
awk '{ | |
printf "%s", $1 " @ " $2 " - " | |
if ($3 == "in") | |
printf "%s", "Heather" | |
else | |
printf "%7s", "Jesse" | |
printf "%s", ": " | |
for(i=7;i<=NF;++i)printf "%s ", $i | |
print "" | |
}' early_texts.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment