In the bash tag, we get a lot of duplicates. Off the cuff, I would speculate that 10-20% of all Bash questions are reiterations of maybe 50 common questions -- basic quoting, variables, syntax, pipelines, and everyone's favorite: the user used Notepad++ and gets weird error messages because of the MS-DOS carriage returns in the script file.
I'm looking for advice on how to proceed to rectify the situation. I'm thinking perhaps there should be additional tools for coordination / community building than Meta and chat (neither of which seem to be frequented much by the high-rep users of this particular tag) but given what we have, how would I proceed to initiate a "dupe squashing meltdown" project?
This is a sort-of meta-meta question in that I would expect a popular answer to be "start a discussion on https://meta.stackoverflow.com/", but given the extensive scope, we are talking about maybe 50-100 posts on Meta, not just an individual posting; and part of the question is also, how to promote any such effort so that the stakeholders (high-rep users and others with an interest) are made aware of it? Spamming (e.g. by posting @comments summoning users who have a high score, but who might not be interested in this effort at all) hardly seems like the way to go?
I know that the python community has a dedicated site on http://sopython.com/ but starting to build a site on my own seems a bit odd -- I presume there was (and still is) an active Python community who are contributing to the site (otherwise it might as well be a personal web site, again with the problem of how to promote it without going out of line with spam or other shenanigans). In fact there are also a few popular Bash sites which could work as a vehicle, including the Bash wiki at http://wiki.bash-hackers.org/doku.php and Greg's Bash site at http://mywiki.wooledge.org/BashGuide but they have their own agendas and their own communities; hijacking them for this would quite possibly be unwelcome.
If the "wiki" on the SE sites was actually a proper Wiki, I think that would fit the bill perfectly, but my impression is that the site developers have no desire to take the site in that direction.
I'm asking in particular for bash on https://stackoverflow.com/ but the question is general enough to apply to all tags and all sites.
Incidentally, I have a query (forked from this one) which doesn't really reveal some of the most popular duplicates, but should be a start. Based on the results, and my own observations over the last 3+ years, it would seem that the problem is mainly one of agreeing on a proper common duplicate.
I have collected some examples, where all the answers get high Google rank, and many are the targets of duplicate nominations; in each group, one should be made the "proper" canonical answer, and all the others (and their duplicates) should be redirected there.
Here is "use double quotes, not single, for variable interpolation", specifically in the context of using sed
to substitute a value with another from a variable.
- Environment variable substitution in sed
- sed substitution with Bash variables
- Replace a text with a variable
- how to use sed to replace a string in a file with a shell variable (with a variation in the misunderstanding)
- Sed replacement not working when using variables [duplicate]
- Use a variable in a sed command
- Using variable inside of sed -i (regex?) bash (not substitution)
- bash : sed : regex in variable (variation in misunderstanding)
Here is a related, but distinct group (the twist is that the variable value contains a slash).
- sed substitution with Bash variables
- In bash how to replace string variable, and set it into sed command
- SED substitution for variable
- Sed in Bash script - replace error cause of variable content
So my question is decidedly not "how can I personally decide which one of these" but rather, how can we together, as a community, decide which one of these, and a number of fifty-odd other similar groups, then proceed individually to actually do something about the problem?