Skip to main content
24 events
when toggle format what by license comment
Dec 19, 2018 at 23:54 history edited Rui F Ribeiro CC BY-SA 4.0
deleted 214 characters in body
Sep 21, 2018 at 20:55 comment added Chris Davies Voting to close as unclear because I can't understand why what seem to be perfectly valid answers are all being rejected as unacceptable.
Sep 21, 2018 at 20:54 history closed CommunityBot
Jeff Schaller
GAD3R
RalfFriedl
Chris Davies
Needs details or clarity
Sep 21, 2018 at 16:56 comment added RalfFriedl cat is an application that doesn't interpret the text at all. If you want something like echo that outputs everything behind the echo unmodified, that's impossible. For details, look up how the shell processes command lines.
Sep 21, 2018 at 10:56 comment added Jeff Schaller Why would an application that "doesn't interpret the text at all" behave any differently with |<> as input? How are you providing the input to this program? As arguments, or as stdin?
Sep 21, 2018 at 10:01 comment added JigglyNaga How do you want to indicate the end of the text?
Sep 21, 2018 at 9:45 review Close votes
Sep 21, 2018 at 20:54
Sep 21, 2018 at 9:29 comment added iamAguest Stephane's answer basically cleared it to me. So the answer is that what I wanted is basically impossible because of shell restrictions.
Sep 21, 2018 at 9:27 comment added JdeBP No-one said that it was hard. We said that it was based upon an erroneous premise, unclear, and given that you reject the very thing that does what the question said that you wanted not adequately explaining what you wanted. And demonstrably so, given that it now reads differently. It now shows that you need to read unix.stackexchange.com/questions/412823 and unix.stackexchange.com/questions/307011 .
Sep 21, 2018 at 9:21 vote accept iamAguest
Sep 21, 2018 at 9:14 answer added Stéphane Chazelas timeline score: 3
Sep 21, 2018 at 9:03 history edited iamAguest CC BY-SA 4.0
added 789 characters in body
Sep 21, 2018 at 9:00 comment added iamAguest @JdeBP no, printf does NOT do what I asked. If it requires %s to do it, then it does NOT do what I ask. %s is printf INTERPRETING %s as something other than plain %s. What is my question? A program that DOESN'T interpret ANYTHING. Seriously, my question is not that hard!
Sep 21, 2018 at 8:58 history edited iamAguest CC BY-SA 4.0
added 789 characters in body
Sep 21, 2018 at 8:54 comment added JdeBP You have that in printf. You even have several examples in answers of it doing exactly that, printing out its arguments with %s. The problem is indeed that your question is not clear, and an inadequate explanation of what you are asking for.
Sep 21, 2018 at 8:52 comment added iamAguest I don't mean to be rude or anything, but the title is pretty clear: I need a Linux application that does exactly what I wrote, print the text without any interpretation. All of the comments and answers are about using other applications and using escapes. That's NOT what the question is about... @JdeBP printf also interprets the strings you give it. I want something simple that never interprets anything. If you pass something to id, whatever it is, it would just output it back the same way you gave it, which then you can redirect. Basically, the functionality of echo without interprets.
Sep 21, 2018 at 8:51 comment added JdeBP Then, given that you already have printf doing what you say that you want, and contradicting the question's premise that printf is not doing, you have not adequately expressed your question.
Sep 21, 2018 at 8:51 history edited Chris Davies CC BY-SA 4.0
Either interpreted or literal. They're opposites
Sep 21, 2018 at 8:50 comment added Chris Davies If you don't say why it's not helping we don't know in what direction you want to head instead.
Sep 21, 2018 at 8:43 comment added iamAguest That's not helping. Also this is for something else.
Sep 21, 2018 at 8:37 comment added JdeBP For context, see unix.stackexchange.com/questions/470303 . Observe that in two of the answers printf is indeed outputting exactly what it is given, and \t comes out as \ followed by t.
Sep 21, 2018 at 8:34 history edited iamAguest CC BY-SA 4.0
added 120 characters in body
Sep 21, 2018 at 8:29 answer added Stephen Kitt timeline score: 2
Sep 21, 2018 at 8:25 history asked iamAguest CC BY-SA 4.0