06-12-2013
Escape Sequence for Capital Letters Input at Shell Not Working
Hello,
I am running Solaris 8. When issuing the command "stty lcase" all text which is output to the terminal are capitalized. Letters that are supposed to be capitals are preceded by a backslash during output. All text which is input is converted to lower case. This is the expected behaviour to my understanding of "stty lcase".
According the documentation for termio(7I) it mentions that "If XCASE is set and ICANON is set, an upper case letter is accepted on input if preceded by a backslash (`\')"
Problem:
I have confirmed that both xcase and icanon are set. However; at the shell, when trying to enter a capital letter (such as the capital letter "A") using the escape sequence: \A, the shell interprets it as a lower case letter "a". What do I need to do in order to be able to enter capital letters at the shell when "stty lcase" is set? The terminal that I will eventually be using is an ASR-33 Teletype that can only handle capital letters (input and output).
Interestingly, using the vi editor, the escape sequence works. If I enter a backslash it does not echo back immediately. When I follow the backslash by a second character such as the letter A, both the backslash and the letter A are echoed back, and is stored in the saved file as a capital letter "A". Is it possible to have the shell behave in the same manner?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have an odd issue.
I am trying to copy some files/folders to my linux box via a burned CD which I created on my mac. When I browse the files on the mac (or my windows box), everything looks fine (some of the folder names start with a capital letter, which is needed for everything to work... (8 Replies)
Discussion started by: blogg
8 Replies
2. Shell Programming and Scripting
Hi,
I have got an application through which an user will submit an address like "c:\tuser\abc".
This application calls a script and passes the address to the scripts positional parameter say $1.
So $1 should contain "c:\tuser\abc", but when $1 is echoed the "\t" and "\a" are interpreted to... (4 Replies)
Discussion started by: puspendu
4 Replies
3. Shell Programming and Scripting
Hi,
I have a korn shell script with 1 parameter.
My script deletes certain files, for example....
sid=$1
rm $ORC/dbs/orapwd${sid} #orapwddb1
rm $ORC/dbs/lk${sid} #lkDB1
In the first file, the $sid must be in small letters and in the second file, the $sid must be in capital... (4 Replies)
Discussion started by: n8575
4 Replies
4. Shell Programming and Scripting
hi guys, I know this might be very simple for u but not for me.
I simply want to print the active users, changeing the first letter in their names to capital. i guess sed it's useful but don't know how to find the correspondign capital letter and don't know how to change just the first... (16 Replies)
Discussion started by: atticus
16 Replies
5. UNIX for Advanced & Expert Users
Hi,
Is it possible to view the escape sequence in the ascii file. That is I want to see the newlinw character,tab ........ etc
Thanks
Sweta (4 Replies)
Discussion started by: sweta
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I just want to search a file for any words containng a capital letter and then display a list of just these words!
I have been trying grep but to no has not helped.(im using the bash shell) (1 Reply)
Discussion started by: djdaniel3
1 Replies
7. Shell Programming and Scripting
Hi all,
I have a requirement where the variable name starts with $, like
$Amd=/home/student/test/
How to work wit it? can some one help me, am in gr8 confusion:confused: (5 Replies)
Discussion started by: shreekrishnagd
5 Replies
8. Shell Programming and Scripting
Hello everyone I tell you that I'm trying to do a bash program that can put parentheses around each capital letter of each line using SED.
I tell you probe with:
sed -e '1,$s/A/(A)/g' "$file"
but only add parentheses in A.
then tested with:
sed 'y/AB/(A)(B)/' "$archivo"
but it... (3 Replies)
Discussion started by: adiegorpc
3 Replies
9. Shell Programming and Scripting
Hi guys.
I have file named output.txt containing file names. one per line. I use this command to convert all characters to capital letters and write to the same file.
cat output.txt | tr 'a-z' 'A-Z' > output.txtBut at the end output.txt is emtpy. Could anyone help?? (6 Replies)
Discussion started by: majid.merkava
6 Replies
10. Shell Programming and Scripting
Hallo,
I need to extract distinct sequence of letters for example from 136 to 193
Files are quite big, so I would prefer not to use "fold -w1"
Thank you very much
Input file look like this:
1 cttttacctt catgtgtttt tgcagatatt tgttcataat aacatcttct ttttaagtta
61 ttaaaatctt... (4 Replies)
Discussion started by: kamcamonty
4 Replies
LEARN ABOUT NETBSD
tolower
TOLOWER(3) BSD Library Functions Manual TOLOWER(3)
NAME
tolower -- upper case to lower case letter conversion
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <ctype.h>
int
tolower(int c);
DESCRIPTION
The tolower() function converts an upper-case letter to the corresponding lower-case letter.
RETURN VALUES
If the argument is an upper-case letter, the tolower() function returns the corresponding lower-case letter if there is one; otherwise the
argument is returned unchanged.
SEE ALSO
ctype(3), isalnum(3), isalpha(3), isascii(3), iscntrl(3), isdigit(3), isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), stdio(3), toascii(3), toupper(3), ascii(7)
STANDARDS
The tolower() function conforms to ANSI X3.159-1989 (``ANSI C89'').
CAVEATS
The argument to tolower() must be EOF or representable as an unsigned char; otherwise, the behavior is undefined. See the CAVEATS section of
ctype(3) for more details.
BSD
April 17, 2008 BSD