9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Good Day, seeking for your assistance on how to not perform my 2nd, 3rd,4th etc.. function if my 1st function is in else condition.
#Body
function1()
{
if
then
echo "exist"
else
echo "not exist"
}
#if not exist in function1 my all other function will not proceed.... (4 Replies)
Discussion started by: meister29
4 Replies
2. Shell Programming and Scripting
Dear All.
I have a script, which process files one by one. In the script I have two functions.
one sftp files to different server
the other from existing file create file with different name.
My question is:
Will sftp function recognize files names , which are created in another... (1 Reply)
Discussion started by: digioleg54
1 Replies
3. Shell Programming and Scripting
I have a script which does gunzip, zip and untar.
Input to the script is file name and file directory (where file is located)
I am reading the input parameters as follows:
FILENAME=$1
FILEDIR=$2
I have created 3 functions that are as follows:
1) gunzip file
2) unzip file... (2 Replies)
Discussion started by: pinnacle
2 Replies
4. Shell Programming and Scripting
How to remove x lines form top and y lines form bottom.
This works, but like awk only cat file | head -n-y | awk 'NR>(x-1)'
so remove last 3 lines and 5 firstcat file | head -n-3 | awk 'NR>4' (5 Replies)
Discussion started by: Jotne
5 Replies
5. Shell Programming and Scripting
HI Guys,
I have data in File A.txt
RL03 RL03_A_1 RL03_B_1 RL03_C_1
RL03 -119.8 -119.5 -119.5
RL07 RL07_A_1 RL07_B_1 RL07_C_1
RL07 -119.3 -119.5 -119.5
RL15 RL15_A_1 RL15_C_1
RL15 -120.5 -119.4
RL16... (2 Replies)
Discussion started by: asavaliya
2 Replies
6. Programming
In gdb, I can call one function with command "call", but how can I step in the function? I don't want to restart the program, but the function had been executed, gdb will execute next statement, and I don't know how to recall the function. (4 Replies)
Discussion started by: 915086731
4 Replies
7. Shell Programming and Scripting
I have two scripts. script1.sh looks
--------------------------------
#!/bin/bash
display()
{
echo "Welcome to Unix"
}
display
-----------------------------
Script2.sh
#!/bin/bash
sh script1.sh //simply calling script1.sh
------------------------------ (1 Reply)
Discussion started by: mvictorvijayan
1 Replies
8. Shell Programming and Scripting
Hi ,
I have three funcions f1, f2 and f3 .
f1 calls f2 and f2 calls f3 .
I have a global variable "period" which i want to pass to f3 .
Can i pass the variable directly in the definition of f3 ?
Pls help .
sars (4 Replies)
Discussion started by: sars
4 Replies
9. UNIX for Advanced & Expert Users
Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)
Discussion started by: Cheraunm
8 Replies
NORMALIZER(3) 1 NORMALIZER(3)
The Normalizer class
INTRODUCTION
Normalization is a process that involves transforming characters and sequences of characters into a formally-defined underlying represen-
tation. This process is most important when text needs to be compared for sorting and searching, but it is also used when storing text to
ensure that the text is stored in a consistent representation.
The Unicode Consortium has defined a number of normalization forms reflecting the various needs of applications:
oNormalization Form D (NFD) - Canonical Decomposition
o Normalization Form C (NFC) - Canonical Decomposition followed by Canonical Composition
o Normalization Form KD (NFKD) - Compatibility Decomposition
o Normalization Form KC (NFKC) - Compatibility Decomposition followed by Canonical Composition
The different forms are defined in terms of a set of transformations on the text, transformations that are expressed by both an algorithm
and a set of data files.
CLASS SYNOPSIS
Normalizer
Normalizer
Methods
o publicstatic bool Normalizer::isNormalized (string $input, [string $form = Normalizer::FORM_C])
o publicstatic string Normalizer::normalize (string $input, [string $form = Normalizer::FORM_C])
PREDEFINED CONSTANTS
The following constants define the normalization form used by the normalizer:
o Normalizer::FORM_C ( integer) - Normalization Form C (NFC) - Canonical Decomposition followed by Canonical Composition
o Normalizer::FORM_D ( integer) -Normalization Form D (NFD) - Canonical Decomposition
o Normalizer::FORM_KC ( integer) - Normalization Form KC (NFKC) - Compatibility Decomposition, followed by Canonical Composition
o Normalizer::FORM_KD ( integer) - Normalization Form KD (NFKD) - Compatibility Decomposition
o Normalizer::NONE ( integer) -No decomposition/composition
o Normalizer::OPTION_DEFAULT ( integer) -Default normalization options
SEE ALSO
o Unicode Normalization
o Unicode Normalization FAQ
o ICU User Guide - Normalization
o ICU API Reference - Normalization
PHP Documentation Group NORMALIZER(3)