8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I my script i telent my node ip and after loging i run some commands...But some time login fail so i want to stop script at that time..
printf 'Please Input Node ID : '
#exec > node_log_$node.log 2>&1
>... (2 Replies)
Discussion started by: Ganesh Mankar
2. Shell Programming and Scripting
I have a requirement where if Source Count is not equal to Target count, then I need to exit/abort the script and come out. Then send an email to firstname.lastname@example.org saying "RECORD COUNT DOES NOT MATCH. Please need your help.
Here is what I have written : If even the count is not... (1 Reply)
Discussion started by: thummi9090
3. UNIX for Dummies Questions & Answers
I need help in logging the error to the error log of one of sort command which i'm using and terminate the process if sort command is not able to execute.
sort -k 1.10,1.20n -o $outputfile $inputfile
how can i achieve the above. (6 Replies)
Discussion started by: mehulleo
4. Shell Programming and Scripting
I have an input like
126.96.36.199 (5 Replies)
Discussion started by: dnam9917
5. Shell Programming and Scripting
Hello Everybody :) !!!. i have question in mind, is it possible to sort a list of hexadecimal numbers using "sort" command? (9 Replies)
Discussion started by: Kesavan
6. Shell Programming and Scripting
Hi to all.
I'm trying to sort this with the Unix command sort.
I need to get this:
user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
7. Shell Programming and Scripting
I have a little bash script that includes make to compile with g++ and then a statement to actually run the compiled program. When it (the script) gets a syntax error, it does not abort and continues to run the previous version of the program.
How can I make the script abort when g++ generates a... (1 Reply)
Discussion started by: siegfried
8. Filesystems, Disks and Memory
I am working on Solaris 8, i have this application runing on one of the partitions,(the installation was done here ie /export/home)
And the out put of this goes to another parition of other disk attached to the same machine. After a certain period of time is get this error stating... (2 Replies)
Discussion started by: zing
locale(3pm) Perl Programmers Reference Guide locale(3pm)
locale - Perl pragma to use or avoid POSIX locales for built-in operations
@x = sort @y; # Unicode sorting order
@x = sort @y; # Locale-defined sorting order
@x = sort @y; # Unicode sorting order again
This pragma tells the compiler to enable (or disable) the use of POSIX locales for built-in operations (for example, LC_CTYPE for regular
expressions, LC_COLLATE for string comparison, and LC_NUMERIC for number formatting). Each "use locale" or "no locale" affects statements
to the end of the enclosing BLOCK.
Starting in Perl 5.16, a hybrid mode for this pragma is available,
use locale ':not_characters';
which enables only the portions of locales that don't affect the character set (that is, all except LC_COLLATE and LC_CTYPE). This is
useful when mixing Unicode and locales, including UTF-8 locales.
use locale ':not_characters';
use open ":locale"; # Convert I/O to/from Unicode
use POSIX qw(locale_h); # Import the LC_ALL constant
setlocale(LC_ALL, ""); # Required for the next statement
# to take effect
", 12345.67' # Locale-defined formatting
@x = sort @y; # Unicode-defined sorting order.
# (Note that you will get better
# results using Unicode::Collate.)
See perllocale for more detailed information on how Perl supports locales.
perl v5.16.3 2013-03-04 locale(3pm)