kaihendry / greptweet

Sane twitter backup and search
https://greptweet.com/
Other
76 stars 10 forks source link

sed: -e expression #1, char 71: unknown option to `s' #11

Closed JamieKitson closed 12 years ago

JamieKitson commented 12 years ago

While trying to get BenGoldacre's tweets:

X-RateLimit-Class: api Status: 200 OK sed: -e expression #1, char 71: unknown option to `s' Before: 600 After: 799 799 bengoldacre tweet total 27004 is greater than the already saved 799

X-RateLimit-Class: api Status: 200 OK sed: -e expression #1, char 368: unknown option to s' sed: -e expression #1, char 92: unknown option tos' sed: -e expression #1, char 267: unknown option to s' sed: -e expression #1, char 297: unknown option tos' Before: 799 After: 995 995 bengoldacre tweet total 27004 is greater than the already saved 995

kaihendry commented 12 years ago

This is a little tricky to debug.

Do you know what string might be causing this?

Do you mind if I nuke http://greptweet.com/u/bengoldacre/ ?

JamieKitson commented 12 years ago

Do you mind if I nuke http://greptweet.com/u/bengoldacre/ ?

No of course not.

kaihendry commented 12 years ago

https://github.com/kaihendry/Greptweet/blob/master/fetch-tweets.sh#L101

It's because the replacement can have "," character which fecks with sed. I've pointed to http://mywiki.wooledge.org/BashFAQ/021 which offers a nice bash solution, but fugly POSIX solutions.

Comments @matthiasr ?