Hi All
I am using regular expressions to determine how to group certain data. I've included an example of the data below.
USD_SPTR_2Y_725.5_PUT_EUROPEAN_09Q1|USD||European|
CAD_NDX_10Yx1Y_5.5_PUT_EUROPEAN_09Q1|CAD||European|
The regular expressions I am using is as follows and this is... (5 Replies)
I'm trying to have my perl script telnet into the network device execute a command then dump the output of the command into a variable. The script then greps for the word "STANDBY". I can't seem to get the script to print out the output because it seems that the script can't find the word... (1 Reply)
Hi ,
I have a file with "|" (pipe) as a delimeter. I am looking for the record count where 5th field is a number with 15 digit length only.
all the records with above requirement is valid rest all are invalid. I need count of valid records and invalid records.
Can anyone please help (9 Replies)
Hi,
i am java guy and new to unix.
I want to validate date pattern using Regex expression
here is the sample program i have written.
#!/bin/sh
checkDate="2010-04-09"
regex="\\d{4}-\\d{2}-\\d{2}\$"
echo $regex
if ]
then
echo "OK"
else
echo "not OK"
fi
But the ouput is... (2 Replies)
Hi,
I am new to scripting.
please help me in validating the user entered time Pattern
Here is the program
#!/bin/bash
validateTimeFormat()
{
checkTime=$1
timePattern="::"
if ]
then
echo "Valid time pattern"
return 1
else
echo "InValid time pattern"
return -1
fi
}
echo "Please... (2 Replies)
What would be the regular expression that can search for a Pattern, having 8 characters out of which atleast 1 digit, 1 lower case, 1 upper case letter and 1 special character must be there. But these can occur at any place randomly. Please help me out.
I'm using find $dir -name "*.txt" -exec... (0 Replies)
Hello,
Awk seem treat the pattern as regular expression, how can awk search not using regular expression? e.g. just represent for "", not "A" or "a" . I don't want to add backslash . (2 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Hi All,
I would like to search a regular expression by passing as an i/p variableto AWK.
For Example ::
162.111.101.209.9516
162.111.101.209.41891
162.111.101.209.9516
162.111.101.209.9517
162.111.101.209.41918
162.111.101.209.9517
162.111.101.209.41937
162.111.101.209.41951... (7 Replies)
Hi,
I'm struggling with very very simple task but dont know where I'm going wrong.
Have the following file numbers.txt
1
12
123
1234
12345
123456
1234567
12345678
123456789
1234567890
9876543210
987654321
98765432
9876543
987654
98765 (1 Reply)
Discussion started by: bobbygsk
1 Replies
LEARN ABOUT XFREE86
charmap
CHARMAP(5) Linux Programmer's Manual CHARMAP(5)NAME
charmap - character set description file
DESCRIPTION
A character set description (charmap) defines all available characters and their encodings in a character set. localedef(1) can use
charmaps to create locale variants for different character sets.
Syntax
The charmap file starts with a header that may consist of the following keywords:
<code_set_name>
is followed by the name of the character map.
<comment_char>
is followed by a character that will be used as the comment character for the rest of the file. It defaults to the number sign (#).
<escape_char>
is followed by a character that should be used as the escape character for the rest of the file to mark characters that should be
interpreted in a special way. It defaults to the backslash ().
<mb_cur_max>
is followed by the maximum number of bytes for a character. The default value is 1.
<mb_cur_min>
is followed by the minimum number of bytes for a character. This value must be less than or equal than <mb_cur_max>. If not speci-
fied, it defaults to <mb_cur_max>.
The character set definition section starts with the keyword CHARMAP in the first column.
The following lines may have one of the two following forms to define the character set:
<character> byte-sequence comment
This form defines exactly one character and its byte sequence, comment being optional.
<character>..<character> byte-sequence comment
This form defines a character range and its byte sequence, comment being optional.
The character set definition section ends with the string END CHARMAP.
The character set definition section may optionally be followed by a section to define widths of characters.
The WIDTH_DEFAULT keyword can be used to define the default width for all characters not explicitly listed. The default character width is
1.
The width section for individual characters starts with the keyword WIDTH in the first column.
The following lines may have one of the two following forms to define the widths of the characters:
<character> width
This form defines the width of exactly one character.
<character>...<character> width
This form defines the width for all the characters in the range.
The width definition section ends with the string END WIDTH.
FILES
/usr/share/i18n/charmaps
Usual default character map path.
CONFORMING TO
POSIX.2.
EXAMPLE
The Euro sign is defined as follows in the UTF-8 charmap:
<U20AC> /xe2/x82/xac EURO SIGN
SEE ALSO iconv(1), locale(1), localedef(1), locale(5), charsets(7)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2016-07-17 CHARMAP(5)