2013-03-15 22:38:01 +01:00
|
|
|
## Google Reader to plain text.
|
|
|
|
|
|
|
|
## This AWK script will convert the starred.json file you get with Google
|
|
|
|
## Takeout from your Google Reader account to a plain text file.
|
|
|
|
|
|
|
|
BEGIN { FS=":" }
|
|
|
|
|
|
|
|
/^ "title" :/ {
|
2014-11-12 16:15:39 +01:00
|
|
|
title=$2
|
|
|
|
gsub(/ "|",/,"",title)
|
2013-03-15 22:38:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/^ "href" :/ {
|
2014-11-12 16:15:39 +01:00
|
|
|
link=$2 ":" $3
|
|
|
|
gsub(/ "|",/,"",link)
|
2013-03-15 22:38:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/\}, \{/ { print link " " title }
|
|
|
|
|
|
|
|
END { print link " " title }
|