you are viewing a single comment's thread.

view the rest of the comments →

[–]GetNifty 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (3 children)

Thanks, can you tell me which command exactly extracts comments? I could only fetch usernames from people who posted threads

[–]AFutureConcern[S] 3 insightful - 1 fun3 insightful - 0 fun4 insightful - 1 fun -  (2 children)

This:

grep -roh 'user/[0-9A-Za-z_-]*\.html'

Just text searches for links to users in all files. Some of them don't work (if the user has not posted a thread), but the links are there attached to each comment. The rest of the command just formats it nicely and counts the number of links to each user before sorting.

[–]GetNifty 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (1 child)

Ah I get it, so you basically search in every file of the archive for a /user/user.html mention (even inside comment files), then fetch it, right?

[–]AFutureConcern[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Exactly.