Sponsored Content
Full Discussion: Bash encoding, how to change
Top Forums UNIX for Dummies Questions & Answers Bash encoding, how to change Post 302356626 by jim mcnamara on Saturday 26th of September 2009 12:42:03 PM
Old 09-26-2009
Even better show the output of
Code:
locale

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to change shell from BASH to C

hi all, how can i change my shell from BASH to C shell? i am using cygwin. (3 Replies)
Discussion started by: npatwardhan
3 Replies

2. Shell Programming and Scripting

change the font size in bash

Hi, I would like to change the font size in bash. I know how do it in ksh: F_VDOBLE="\033#6" print "${F_VDOBLE}Esto es..." But in bash I don't know Could you help me please? Many thanks! (5 Replies)
Discussion started by: mierdatuti
5 Replies

3. Shell Programming and Scripting

How can i change my bash prompt ?

It looks like, user@hostname:/auto/home3/user$ Desired, user@hostname$ I added following line in .bashrc, but still its same. export PS1=" $ " Please help me :confused: (13 Replies)
Discussion started by: admax
13 Replies

4. Shell Programming and Scripting

How to find the file encoding and updating the file encoding?

Hi, I am beginner to Unix. My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8. Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies

5. Shell Programming and Scripting

change precision of bash variable

I have a variable in a bash script, DISTANCE=`awk 'BEGIN {FS="\t"} {if (NR==2) print $3;}' $OUTFILE` this is a real number taken from a file. The value are like, 0.334561754018 I am using this value in a file name, '$NAME'_'$DISTANCE'.txt I would like to shorten the number some to... (4 Replies)
Discussion started by: LMHmedchem
4 Replies

6. Shell Programming and Scripting

using awk or bash to change the format

tenxun-glibc_code-x86-64-linux-20120713190049.root.tar.bz2 To tenxun-glibc_code-x86-64-linux.root.tar.bz2 (3 Replies)
Discussion started by: yanglei_fage
3 Replies

7. Shell Programming and Scripting

bash commands to change processor

Say you got a for loop where each execution has 0 dependence on the other. Thus ideally you'd like to executed them all concurrently rather than iteratively (if you had enough CPUs). We don't quite have that many CPUs but I would like to instead partition the iterations between them. Or maybe... (10 Replies)
Discussion started by: stevensw
10 Replies

8. Shell Programming and Scripting

Bash code change

I have the below bash which runs great. Before I make a change I wanted to check with experts (as I am not one). After the perl code completes, I am going to display "annotation complete" then go into the remove function . annovar() { # combine id and position files cd... (2 Replies)
Discussion started by: cmccabe
2 Replies

9. Solaris

View file encoding then change encoding.

Hi all!! I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m expecting / looking an output as UTF8 or ANSI / ASCII Is there command to display the files encoding? Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies

10. UNIX for Beginners Questions & Answers

Change encoding, no removing special chars. inconv

Hi all, I'm using iconv command to change files encoding to UTF-8 If my input file has chars as those are removed creating the file without those special chars. I tried using iconv -c, but there is still the removal. Is there a way to keep those special chars changing just the... (6 Replies)
Discussion started by: mrreds
6 Replies
iswalpha(3C)						   Standard C Library Functions 					      iswalpha(3C)

NAME
iswalpha, isenglish, isideogram, isnumber, isphonogram, isspecial, iswalnum, iswascii, iswblank, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit - wide-character code classification functions SYNOPSIS
#include <wchar.h> #include <wctype.h> int iswalpha(wint_t wc); int isenglish(wint_t wc); int isideogram(wint_t wc); int isnumber(wint_t wc); int isphonogram(wint_t wc); int isspecial(wint_t wc); int iswalnum(wint_t wc); int iswascii(wint_t wc); int iswblank(wint_t wc); int iswcntrl(wint_t wc); int iswdigit(wint_t wc); int iswgraph(wint_t wc); int iswlower(wint_t wc); int iswprint(wint_t wc); int iswpunct(wint_t wc); int iswspace(wint_t wc); int iswupper(wint_t wc); int iswxdigit(wint_t wc); DESCRIPTION
These functions test whether wc is a wide-character code representing a character of a particular class defined in the LC_CTYPE category of the current locale. In all cases, wc is a wint_t, the value of which must be a wide-character code corresponding to a valid character in the current locale or must equal the value of the macro WEOF. If the argument has any other values, the behavior is undefined. iswalpha(wc) Tests whether wc is a wide-character code representing a character of class "alpha" in the program's current locale. isenglish(wc) Tests whether wc is a wide-character code representing an English language character, excluding ASCII characters. isideogram(wc) Tests whether wc is a wide-character code representing an ideographic language character, excluding ASCII characters. isnumber(wc) Tests whether wc is a wide-character code representing digit [0-9], excluding ASCII characters. isphonogram(wc) Tests whether wc is a wide-character code representing a phonetic language character, excluding ASCII characters. isspecial(wc) Tests whether wc is a wide-character code representing a special language character, excluding ASCII characters. iswalnum(wc) Tests whether wc is a wide-character code representing a character of class "alpha" or "digit" in the program's current locale. iswascii(wc) Tests whether wc is a wide-character code representing an ASCII character. iswblank(wc) Tests whether wc is a wide-character code representing a character of class "blank" in the program's current locale. This function is not available to applications conforming to standards prior to SUSv3. See standards(5). iswlower(wc) Tests whether wc is a wide-character code representing a character of class "lower" in the program's current locale. iswcntrl(wc) Tests whether wc is a wide-character code representing a character of class "cntrl" in the program's current locale. iswdigit(wc) Tests whether wc is a wide-character code representing a character of class "digit" in the program's current locale. iswgraph(wc) Tests whether wc is a wide-character code representing a character of class "graph" in the program's current locale. iswprint(wc) Tests whether wc is a wide-character code representing a character of class "print" in the program's current locale. iswpunct(wc) Tests whether wc is a wide-character code representing a character of class "punct" in the program's current locale. iswspace(wc) Tests whether wc is a wide-character code representing a character of class "space" in the program's current locale. iswupper(wc) Tests whether wc is a wide-character code representing a character of class "upper" in the program's current locale. iswxdigit(wc) Tests whether wc is a wide-character code representing a character of class "xdigit" in the program's current locale. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ |ATTRIBUTE TYPE |ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe with exceptions | +-----------------------------+-----------------------------+ The iswalpha(), iswalnum(), iswblank(), iswcntrl(), iswdigit(), iswgraph(), iswlower(), iswprint(), iswpunct(), iswspace(), iswupper(), and iswxdigit() functions are Standard. SEE ALSO
localedef(1), setlocale(3C), stdio(3C), ascii(5), attributes(5), standards(5) SunOS 5.11 19 Apr 2004 iswalpha(3C)
All times are GMT -4. The time now is 05:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy