-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mauro Graziosi wrote:
> Listeros:
> Después de buscar y probar, no alcanzo a deducir como es el tema de
> los caracteres especiales en el bash de Linux.
A que le llamas caracteres especiales?
> Algunos salen tal cual como los encuentro en las tablas (supuestamente
> Linux usa ANSI), otros no, algunas convinaciones de teclas no hacen
> nada. No se en que, pero estoy errando en algo.
Fiajte si te sirve esto:
Words of the form $'string' are treated specially. The word
expands to string, with backslash-escaped characters replaced as
specifed by the ANSI C standard. Backslash escape sequences, if
present, are decoded as follows:
\a alert (bell)
\b backspace
\e an escape character
\f form feed
\n new line
\r carriage return
\t horizontal tab
\v vertical tab
\\ backslash
\' single quote
\nnn the eight-bit character whose value is the octal
value nnn (one to three digits)
\xHH the eight-bit character whose value is the
hexadecimal value HH (one or two hex digits)
\cx a control-x character
de man bash(8) QUOTING
> No pretendo que me digan exactamente como sacar un caracter, solo
> quiero saber que tengo que leer para entender el tema de la/s tabla/s
> de caracteres utilizada por el bash, si se puede cambiar, como saber
> cual tengo. Todo empezó por no poder poner el caracter ´.
Pner en donde ? Si es en un ehco o algo asi, proba echo "\´"
No se cual es pero otra que tenes es:
PROMPTING
When executing interactively, bash displays the primary prompt
PS1 when it is ready to read a command, and the secondary prompt PS2
when it needs more input to complete a command. Bash allows
these prompt strings to be customized by inserting a number of back-
slash-escaped special characters that are decoded as follows:
\a an ASCII bell character (07)
\d the date in "Weekday Month Date" format (e.g., "Tue
May 26")
\D{format}
the format is passed to strftime(3) and the result
is inserted into the prompt string; an empty format results in a
locale-specific time representation. The braces
are required
\e an ASCII escape character (033)
\h the hostname up to the first `.'
\H the hostname
\j the number of jobs currently managed by the shell
\l the basename of the shell's terminal device name
\n newline
\r carriage return
\s the name of the shell, the basename of $0 (the
portion following the final slash)
\t the current time in 24-hour HH:MM:SS format
\T the current time in 12-hour HH:MM:SS format
\@ the current time in 12-hour am/pm format
\A the current time in 24-hour HH:MM format
\u the username of the current user
\v the version of bash (e.g., 2.00)
\V the release of bash, version + patchelvel (e.g.,
2.00.0)
\w the current working directory
\W the basename of the current working directory
\! the history number of this command
\# the command number of this command
\$ if the effective UID is 0, a #, otherwise a $
\nnn the character corresponding to the octal number nnn
\\ a backslash
\[ begin a sequence of non-printing characters, which
could be used to embed a terminal control sequence into the prompt
\] end a sequence of non-printing characters
Tambien del man de bash
> Saludos.
Disculpa si no te interprete bien
- --
Ricardo A.Frydman
Consultor en Tecnología Open Source
Administrador de Sistemas
http://www.eureka-linux.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCsX7Lkw12RhFuGy4RAop6AJ9xtL3ClesnPy5lXqcTYDNn2gSAEACfSA7O
N3gN6Gzk2WlHB4liy3b01D8=
=XBCl
-----END PGP SIGNATURE-----
--
Para desuscribirte tenés que visitar la página
https://listas.linux.org.ar/mailman/listinfo/lugar-gral/
/* Publica y encontra trabajo relacionado con softlibre en
http://www.usla.org.ar/modules/jobs/ */
Si tenés algún inconveniente o consulta escribí a mailto:[EMAIL PROTECTED]