I won't even pretend i understand how this sed works! but it does! is it possible to replace uppercase with uppercase and lower with lower or would i have to run 2 different seds... cheers
I am working on a shell program that needs to accept alpha-numeric input (i.e., P00375); when I use a simple 'read' statement to read in the input (i.e., read LOG), I receive the message "p00375: bad number". How must I adjust my input statement to accept alpha-numerics?
Thanks!
Brent (3 Replies)
Hi,
Sorry for silly question, but I'm trying to write a perl script to operate a log file that is in following format:
(4)ab=1234/(10)bc=abcdef9876/cd=0....
The number in the brackets is the lenghts of the field, "/" is the field separator. Brackets are not leading every field.
What I'm... (9 Replies)
Hi All,
I want to make some characters to be bold in a file.
I have a file e.g aa.log which contains
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
gfgfgdaerqrqwrqerqwrwqwrqrqwrqr
qqwerqwrqwrqwrqwrqwrqwrqwrq
qwrqwrqwrqwrqwrqwrqwrqwrqwr
File is too large to view
Last line... (2 Replies)
Hi All,
I am new to Unix and trying to run some scripting on a linux box. I am trying to remove the non alphanumeric characters and alpha characters from the following line.
<measResults>883250 869.898 86432.4 809875.22 804609 60023 59715 </measResults>
Desired output is:
883250... (6 Replies)
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Hello!
I know that this expression gets rid of non-alphanumeric characters:
sed 's///g'
and I understand that it is replacing them with nothing - hence the '//'-, but I don't understand how it's doing it.
It seems it's finding strings that begin with alphanumeric and replacing them with... (2 Replies)
Hi,
I would like to find a 3-letter character series in a string/variable and replace it with x's.
An example set of strings is:
563MS333_101_afp_400-100_screening
563MS333_104-525_rjk_525_screening
563MS333_110_dlj_500-100_w24
563MS333_888-100_mmm_424_screening
The only constants... (5 Replies)
I have the following script that will print column 4 ("25") when column 1 contains "123". However, I need to ignore the alpha characters that are contained in the input file. If I were to ignore the characters my output would be column 3.
What is the best way to print my column of interest... (3 Replies)
I have this fastq file:
@M04961:22:000000000-B5VGJ:1:1101:9280:7106 1:N:0:86
GGGGGGGGGGGGCATGAAAACATACAAACCGTCTTTCCAGAAATTGTTCCAAGTATCGGCAACAGCTTTATCAATACCATGAAAAATATCAACCACACCA
+test-1
GGGGGGGGGGGGGGGGGCCGGGGGFF,EDFFGEDFG,@DGGCGGEGGG7DCGGGF68CGFFFGGGG@CGDGFFDFEFEFF:30CGAFFDFEFF8CAF;;8... (10 Replies)
Discussion started by: Xterra
10 Replies
LEARN ABOUT SUSE
iswlower
ISWLOWER(3) Linux Programmer's Manual ISWLOWER(3)NAME
iswlower - test for lowercase wide character
SYNOPSIS
#include <wctype.h>
int iswlower(wint_t wc);
DESCRIPTION
The iswlower() function is the wide-character equivalent of the islower(3) function. It tests whether wc is a wide character belonging to
the wide-character class "lower".
The wide-character class "lower" is a subclass of the wide-character class "alpha", and therefore also a subclass of the wide-character
class "alnum", of the wide-character class "graph" and of the wide-character class "print".
Being a subclass of the wide-character class "print", the wide-character class "lower" is disjoint from the wide-character class "cntrl".
Being a subclass of the wide-character class "graph", the wide-character class "lower" is disjoint from the wide-character class "space"
and its subclass "blank".
Being a subclass of the wide-character class "alnum", the wide-character class "lower" is disjoint from the wide-character class "punct".
Being a subclass of the wide-character class "alpha", the wide-character class "lower" is disjoint from the wide-character class "digit".
The wide-character class "lower" contains at least those characters wc which are equal to towlower(wc) and different from towupper(wc).
The wide-character class "lower" always contains at least the letters 'a' to 'z'.
RETURN VALUE
The iswlower() function returns nonzero if wc is a wide character belonging to the wide-character class "lower". Otherwise it returns
zero.
CONFORMING TO
C99.
NOTES
The behavior of iswlower() depends on the LC_CTYPE category of the current locale.
This function is not very appropriate for dealing with Unicode characters, because Unicode knows about three cases: upper, lower and title
case.
SEE ALSO islower(3), iswctype(3), towlower(3)COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1999-07-25 ISWLOWER(3)