Is there any Linux application that just prints whatever you give it WITHOUT doing ANY sort of interpretation? So regardless of what I send to it, it would always output exactly what I send to it?
I want something with the functionality of echo or printf, but without interpreting the \ and everything else.
Here's the kind of application I want:
newcommand "sa"" '' " "' ''""d f\sad\ f\sad\ \df\\ h\df\\\\\ sdf\h\sdfh\"" """" ''" " "ds\f\\\\ $%% \\as\ fsa\dg\ \afd\g\ \df\g \\df\g\\\\ n\ \n \\ sa\d \as \t a fsad g"" DF"G ""SD"F"" "DF"SG" """"Ds f"G" 'dsf'g 'sdf" G'ds f'g"SD fG"sd'f'g 'SFD""" ' > testfile1
cat testfile1
"sa"" '' " "' ''""d f\sad\ f\sad\ \df\\ h\df\\\\\ sdf\h\sdfh\"" """" ''" " "ds\f\\\\ $%% \\as\ fsa\dg\ \afd\g\ \df\g \\df\g\\\\ n\ \n \\ sa\d \as \t a fsad g"" DF"G ""SD"F"" "DF"SG" """"Ds f"G" 'dsf'g 'sdf" G'ds f'g"SD fG"sd'f'g 'SFD""" '
I can't find any program with this functionality. Basically, every positional parameter is outputted as is, including " and '. The only things that aren't outputted as-is would be |<> for obvious reasons
Okay, here's an even better example of what I want:
I want something that does, in command line and in one single line, something that can be achieved using nano or vi and writing one full line of text.
printfis indeed outputting exactly what it is given, and\tcomes out as\followed byt.printfdoing what you say that you want, and contradicting the question's premise thatprintfis not doing, you have not adequately expressed your question.|<>as input? How are you providing the input to this program? As arguments, or as stdin?