Tag Info

New answers tagged

0

There is actually a new service I just found out about called asciinema.org which provides on-screen recording facilities. It is not a pastebin, but it is probably the best approximation of what I was looking for.


3

The backslash is an escape character that: shall preserve the literal value of the following character, with the exception of a <newline>. ... The <backslash> ... shall be removed So \S means the same thing as S, because S is not a newline character and also not a shell special character that could be escaped ($, ", ', {, [, `, \, |, &, ...


2

\S escapes the S, which is not a special character, thus gives S. You need to double the backslash to print it: echo \\Smith EDIT: But more generally, it's better to use printf. See the difference between echo x\\by, which outputs "y" (the "x" gets overwritten by the backspace \b) with some versions of echo (dash, zsh), and printf "%s\n" x\\by, which ...


11

Generally, you only have to escape one time to make special character considered literal. Sometime you have to do it twice, because your pattern is used by more than one program. Let disscuss your example: man gcc | grep \\. This command is interpreted by two programs, bash interpreter and grep. The first escape causes bash knows \ is literal, so the ...


1

As michas has explained, those are terminal escape sequences. How they are interpreted is up to the terminal. You can do as michas has suggested and call ls like \ls, which will call the ls executable in $PATH, instead of the common shell alias ls --color=auto. To remove that shell alias you could do: unalias ls You can also add the option... ls ${opts} ...


4

Those are escape sequences to set colors: ←[00;34 tries to turn on blue color ←[00m tries to reset the color It is up to your terminal to interpret those sequences and do the coloring. The real putty brings it's own terminal, which is able to interpret these. If you use plink, you are using your windows terminal, which is not able to do so and simply ...



Top 50 recent answers are included