Conversation started Jan 12, 2016 at 9:58.
Jan 12, 2016 09:58
I can't get exactly how duplication works.
@terdon ^^^
@Pandya Please don't ping me for meta posts. All mods are notified when anything new is posted on meta. That said, I don't understand what the problem is.
You decided to split your newline question into two after people already answered and now want them to move their answers to the new one. The new question doesn't actually ask for anything different than the old one. How is it not a dupe? I don't understand why you split them (and I will be reverting your edit since the first version was a better question).
sorry for ping. I just wanted to understand the process of duplication.
@Pandya No problem, just explaining. So, the text processing question is certainly a dupe of your new one. It is exactly the same question, the only difference I see is that you want sed,awk etc solutions. Those can already be posted in the original, why split it?
As for the other one, of course it's a dupe. Why not? You'll see that Gilles's answer is saying exactly the same thing yours is. What would be the benefit of opening yours again?
So, you mean answer matters while duplicating the different questions?
@Pandya Of course. Not always but yes, it can.
Basically, if the same answer can be posted on two questions, the questions are duplicates by definition.
Jan 12, 2016 10:10
@terdon Thanks; new thing to know for me.
Remember that closed dupes are not deleted. They serve to direct users to the target answer. So, even if closed, people can search for "what are commands" or whatever, find your post and then be directed to the duplicate.
For this and this, I thought different questions viz. first for removing newline characters at the end of file (that not deals with a way of writing anything to file)
And for second, it deals with writing into file without breaking lines....
Whether you write or not just depends on whether you add a > foo at the end, really. It doesn't merit a separate question. Especially not when people have already answered and you change the question to make their answers less relevant.
By the way, here's the official meta FAQ on duplicates:
94
A: How should duplicate questions be handled?

Sam HaslerIn a nutshell: If a question is a duplicate of another question, flag or vote to close. When are two questions considered duplicates? Basically, questions are duplicates if they have the same answers. This includes not only word-for-word duplicates, but also the same idea expressed in different...

> Basically, questions are duplicates if they have the same answers. This includes not only word-for-word duplicates, but also the same idea expressed in different words.
So, The mistake by me: is I asked both questions in a single body of first question. But later on I separated the question for " In other words with a single command or single operation that is capable of doing this" (see that) but This answer servers the information for both So, newone is closed
If there is flexibility then It is more appropriate to have @Gilles 's answer on new question. But unfortunately this seems now fixed/sicked and I can't limit my question for just removing newline character at the end of file and losing scope for that
@terdon am I right?
Jan 12, 2016 11:14
More or less, yes. Basically, changing the scope of a question after answers have been posted is not a good idea. In any case, in this instance, the two questions are really not significantly different. You happened to have chosen to answer it using two commands but that's just what you chose. There's nothing about the question that requires two commands.
@terdon OK. Hmm... I am thinking to delete that question.
Can/Should I?
@Pandya Up to you but yes, I would delete it. It isn't really adding anything useful.
Done
Thanks for helping. @terdon
No problem
 
Conversation ended Jan 12, 2016 at 11:27.