Sponsored Content
Full Discussion: Perl Conversion Tool
Top Forums Shell Programming and Scripting Perl Conversion Tool Post 302381908 by nathan on Monday 21st of December 2009 10:52:10 AM
Old 12-21-2009
I highly recommend you read this article:

The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets

I was having the same problem a few months back, and this helped clear up some confusion for me.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Another bash shell to perl conversion

Hello everyone. I am new to linux and need help again. I need help converting this bash shell to linux: for i in `ls -l *.txt` do `./cnvidtf.pl $i` `curl -u login:pswd --disable-espv -T loadfile.seq ftp://11.1.11.1` `mysql -u login -h 11.1.11.1 -ppswd < lddocs.sql` done Thanks! Any help... (6 Replies)
Discussion started by: freak
6 Replies

2. Shell Programming and Scripting

Perl in KSH - julian conversion

Hello Everyone, I have this code misbehaving in one of my scripts, I have a var containing the sequential number of the day for the year and I am suppose to get the regular date for that day and its weekday. If I set the day to 273 I get back 2008/09/31 which is not a proper date. can you help... (7 Replies)
Discussion started by: gio001
7 Replies

3. OS X (Apple)

What's the Best Tool for Perl (for Mac)?

Would it be "PerlApp" or "Active Perl?" Trying to decide on the best tool in order to edit and create a few perl scripts for a mac program I'm working with. Any users out there? (2 Replies)
Discussion started by: unimachead
2 Replies

4. Shell Programming and Scripting

[Perl] Timestamp conversion

Hi, I have searched, read and tried, but no luck. I have this code: #!/bin/perl -w #-d use strict; use POSIX qw(strftime); my $getprpw_list="/usr/lbin/getprpw -l"; my $host = "nbsol151"; my $user = "genadmin"; my %uid; my %spwchg; my %upwchg; my %slogint; (2 Replies)
Discussion started by: ejdv
2 Replies

5. Shell Programming and Scripting

Encoding conversion in PERL script

I have oracle 9i database installed with UTF-8 Encoding. I want a perl script that converts unicode to utf8 before commiting in database and utf8 to unicode when retreiving from database For example : the word Ïntêrnatïônàlîzâtion has to be stored in database as Internationalization and when retreived... (6 Replies)
Discussion started by: vkca
6 Replies

6. Shell Programming and Scripting

perl instead of grep 'conversion' help?

Hello: I butchered a shell script together, but my script kung-fu is 5 years old and all I've used for 5 years are for i loops. I hope that some perl guru can do in 5 minutes what takes me 5 weeks, so I am asking for help. I have a simple script using "grep -A 2 'string' /path/to/file" but... (4 Replies)
Discussion started by: Habitual
4 Replies

7. Shell Programming and Scripting

Timestamp conversion in PERL

Hi, I have a file as below I need to overwrite the 2 nd column alone to numeric format like "06122011030414012345" as per the timestamp value output file should be the microseconds can be neglected if required. Any help will be appreciated. Thanks in advance (1 Reply)
Discussion started by: irudayaraj
1 Replies

8. Shell Programming and Scripting

help me for Perl script for tool usages

Hi, How to do Perl script for floating license usages metric. Anyone help me out this issue? Regards, Ram. (0 Replies)
Discussion started by: ramanthan
0 Replies

9. Shell Programming and Scripting

conversion of loop in perl

Hello Sir, How can i convert below two loop lines in perl for BLOCK in /sys/block/myblock* for BLOCK in /dev/myblock* How i can write them in perl like foreach( </sys/block/myblock*/queue/nr_requests> ) (5 Replies)
Discussion started by: learnbash
5 Replies

10. Shell Programming and Scripting

Perl - TimeDate format conversion

Dear All, I need to print the below value from excel column 20160219T05:21:59+0100 to 19-FEB-2016 05:21:11 Can anyone help on this datetime format conversion. Please suggest in print logic itself. Regards, Kumaresan P (6 Replies)
Discussion started by: Kumaresanpvk
6 Replies
lang(5int)																lang(5int)

Name
       lang - language names

Description
       The  language  support databases used by are stored in the directory If either the language support databases are moved or you specify your
       own language support database, it is necessary to set the INTLINFO environment variable to the new location of these tables. The syntax	of
       this environment variable is identical to See the reference page for more information.

       Should  you  want to create your own database, use the reference  page and the Guide to Developing International Software as references for
       what information your database should contain.  After you create the database, you can specify it by using the international compiler,

       The following table defines the supplied settings of the LANG and LC_ environment variables.

       ---------------------------------------------------------------------
       Database      Language	Territory	 Codeset       Use
       ---------------------------------------------------------------------
       ENG_GB.MCS    English	United Kingdom	 DEC MCS       VT200 series
       FRE_FR.MCS    French	France
       GER_DE.MCS    German	Germany

       ENG_GB.8859   English	United Kingdom	 ISO Latin-1   VT300 series
       FRE_FR.8859   French	France
       GER_DE.8859   German	Germany

       ENG_GB.646    English	United Kingdom	 ISO 646       VT100 series
       FRE_FR.646    French	France
       GER_DE.646    German	Germany
       ---------------------------------------------------------------------

       In addition to the default collation definition for the GER_DE.nnn language, Digital provides a character  collation  table  that  collates
       information  using  the	German telephone directory ordering of data. The following example shows how to set the variable to use this table
       with the ISO Latin-1 codeset:
       LC_COLLATE = GER_DE.8859@P_TELEPHONE

See Also
       ic(1int), intro(3int), nl_langinfo(3int), setlocale(3int), environ(5int)
       Guide to Developing International Software

																	lang(5int)
All times are GMT -4. The time now is 06:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy