The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
2answers
2k views

get ubuntu terminal to send an escape sequence (control+shift+up)

This problem starts when I use emacs ( with -nw option). Let me first explain it. I tried to define hotkey (for emacs) as following (global-set-key [(control shift up)] 'other-window) but it doesn'...
2
votes
1answer
2k views

How to correctly set GNU Screen to display currently running program in hardstatus

In bash, to display the name of the current program in the GNU Screen hardstatus line takes only two configuration lines. First, tell screen what the end of your prompt normally looks like, and supply ...
4
votes
3answers
2k views

How do I escape the string \" for command line in Windows?

For a script that compiles LaTeX for me, I have to send the string \" to the command line, within a string delimited by ". Example: >pdflatex "\IeC{\" o}" How do I escape the " in the middle? If ...
0
votes
1answer
263 views

remap gnu screen “other” window selection

In my .screenrc file, I have: escape \034\034 This remaps ^a to ^\. This works for switching windows when specifying the window number, such as ^\0 or ^\1 but the 'other' command is not available, ...
0
votes
2answers
475 views

Shell scripting: handling currency arguments

I want to run a script that takes arguments in a currency format. Example: > ./myscript $55.50 total is $55.50 > ./myscript $3.40 total is $58.90 Now, no matter how hard I try to escape the ...
26
votes
2answers
10k views

Excel Conditional Formatting Escaping a Question Mark

I would like to use a conditional formatting rule in an excel file that would color any box with a question mark in it red. It seems that Excel is using a question mark as a wild card and will turn ...
111
votes
5answers
46k views

In bash, how do I escape an exclamation mark?

I want to do something like bzr commit -m "It works!". I can sort of escape the exclamation mark by doing bzr commit -m "It works\!". However, then my commit message includes the backslash. How do I ...
2
votes
4answers
3k views

Can't escape single quotes in shell

I'm trying to make a command to do a perl substitution on a batch of php files in a directory. The string I want to replace has single quotes in it, and I can't get it to properly escape the in shell. ...
39
votes
4answers
23k views

Escaping a password using mysqldump console

I am running a mysqldump via a bash script and have encountered a problem with a password that contains special characters. mysqldump -hlocalhost -uUSERNAME -pPA$$W0RD DATABASE | ...
11
votes
5answers
18k views

Is there a way to escape single-quotes in the shell?

E. g. I want to say perl -e 'print '"'"'Hello, world!'"'"', "\n";' Is there a less awkward way to do it, e. g. escaping single-quotes? Yes, I know that I can write perl -e 'print q[Hello, world!],...