Category "escaping"

Why does printf behave differently when called from a Makefile?

The printf program can be used to print binary data, e.g.: $ printf '%b' '\xff\xff' �� If I put this in a Makefile on its own, it works the same:

java program to print array element when index is entered by user

Forgive me if my question is stupid, I am a beginner, I found some Java code in which html components and some data were encoded and stored in array as string..

How to escape a whole sql string instead of escaping each argument?

I use https://github.com/mysqljs/mysql.git library. I have a mysql db query architecture in which I can not modify the SQL query file one by one to escape each

How do you escape a '@' symbol within in a url with razor

I know this is probably going to be something very simple and it is like just a 'gotcha' that I have yet to get; however, I have been struggling with escaping t

prevent escape string c#

I have my sql query which displays fields using "where" from a variable. I have my variable passed from a function string empCode which value is "!\\(" Here's

How do I escape parenthesis within a CONTAINS using T-SQL?

I want to have the following query: SELECT COUNT(*) FROM MyTable WHERE CONTAINS (MyField, '(429)') The problem, is that the parenthesis are ignored and it is

How do I escape a series of backslashes in a bash printf?

The following script yielded an unexpected output: printf "escaped slash: \\ \n" printf "2 escaped slashes: \\\\ \n" printf "3 escaped slashes: \\\\\\ \n" prin

Use a variable's value in a sed command [duplicate]

I can't seem to use a variable in a sed command, for example: sed "24s/.*/"$ct_tname"/" file1.sas > file2.sas I want $ct_tname the varia

What is the correct way to force JSON.Net to escape forward slash (solidus) characters?

So for business reasons I need to force JSON.NET to escape a JSON blob like so: { url: 'http://some.uri/endpoint' } As { "url": "http:\/\/some.uri\/endpoint