mentions two loop options: perl -n
and perl -p with automatic print at the end of each line.
Example:
Arguments are opening the files, so you can run this as
knowing that the shell expands access* in alphabetic order,
or give them manually like
Help me
How can I go about doing this.
also, if you have any idea of other files I can delete and what I can do to improve the performance of a system thats running too slow (6 Replies)
hi!
i m tryin to write a program that will perform a specific tasks after fixed interval of time.say every 1 min.
i jus donno how to go abt it.. which functions to use and so on...
i wud like to add that i am dont want to use crontab over here.
ny lead is appreciated.
thanx. (2 Replies)
Dear All
I have group of files named :
CDR.1,CDR.2.,CDR.3,CDR.4,CDR.5,CDR.6,etc.......
I am performing an awk command look like this : nawk -f script CDR.*
What i want is that i want to perform this command on range of files not all of them.
Instead of writing CDR.* i want to write... (3 Replies)
hi,
I've some log files in a path /SYSTEM/custom/data/MNP/xmlerror as:
MNP_PORT_IN_P200902191347563283_20090220181630_err_1.xml
MNP_PORT_IN_P200902171717114365_20090220211814_err_2.xml
MNP_PORT_IN_P200902191349023233_20090220181923_err_1.xml... (4 Replies)
How can I supply the userID/password when executing FTP in the batch mode? Using .netrc is not an option (prohibited per Corporate Policy).
Thank you in advance. (1 Reply)
Hello,
Have been trying to develop a script that reads a string from an input file then looks up that string in a reference file to get a number, then inset that number back into the original file at a certain point (_____):
Input File:
HARRY JON _____ AA M N
PETER PIE ... (8 Replies)
Friends
Greetings. I have a RedHat 5.7 64bit virtual server on VMware ESXi 4.1. This server and other Redhat Servers are running very slow. I did some stats collection on ESXi and looks like Linux is holding the disk IO. I am not sure what is causing this behavior.
On Linux I checked the CPU... (4 Replies)
Hi,
I need help in UNIX shell script to handle the following:
I have file called File1.txt which contains data something like below:
LibraryName|BookName|Flag-Indicator|COUNT
LIB1|BOOK1|A|12
LIB1|BOOK1|A|2
LIB2|BOOK2|I|1
LIB2|BOOK1|I|4
LIB1|BOOK2|A|12
LIB1|BOOK1|I|22... (3 Replies)
After getting the new BE created and activating the new BE with luactivate command, OS is still booting with OLD BE.
Steps followed below..
bash-3.2#
bash-3.2# lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot... (3 Replies)
I am hoping to pull multiple strings from one file and use them to search within a block of text within another file.
File 1PS001,001 HLK
PS002,004 MWQ
PS004,002 RXM
PS004,006 DBX
PS004,006 SBR
PS005,007 ML
PS005,009 DBR
PS005,011 MR
PS005,012 SBR
PS006,003 RXM
PS006,003 >SJ
PS006,010... (11 Replies)
Discussion started by: jvoot
11 Replies
LEARN ABOUT MOJAVE
locale::codes::langext
Locale::Codes::LangExt(3pm) Perl Programmers Reference Guide Locale::Codes::LangExt(3pm)NAME
Locale::Codes::LangExt - standard codes for language extension identification
SYNOPSIS
use Locale::Codes::LangExt;
$lext = code2langext('acm'); # $lext gets 'Mesopotamian Arabic'
$code = langext2code('Mesopotamian Arabic'); # $code gets 'acm'
@codes = all_langext_codes();
@names = all_langext_names();
DESCRIPTION
The "Locale::Codes::LangExt" module provides access to standard codes used for identifying language extensions, such as those as defined in
the IANA language registry.
Most of the routines take an optional additional argument which specifies the code set to use. If not specified, the default IANA language
registry codes will be used.
SUPPORTED CODE SETS
There are several different code sets you can use for identifying language extensions. A code set may be specified using either a name, or
a constant that is automatically exported by this module.
For example, the two are equivalent:
$lext = code2langext('acm','alpha');
$lext = code2langext('acm',LOCALE_LANGEXT_ALPHA);
The codesets currently supported are:
alpha
This is the set of three-letter (lowercase) codes from the IANA language registry, such as 'acm' for Mesopotamian Arabic.
This is the default code set.
ROUTINES
code2langext ( CODE [,CODESET] )
langext2code ( NAME [,CODESET] )
langext_code2code ( CODE ,CODESET ,CODESET2 )
all_langext_codes ( [CODESET] )
all_langext_names ( [CODESET] )
Locale::Codes::LangExt::rename_langext ( CODE ,NEW_NAME [,CODESET] )
Locale::Codes::LangExt::add_langext ( CODE ,NAME [,CODESET] )
Locale::Codes::LangExt::delete_langext ( CODE [,CODESET] )
Locale::Codes::LangExt::add_langext_alias ( NAME ,NEW_NAME )
Locale::Codes::LangExt::delete_langext_alias ( NAME )
Locale::Codes::LangExt::rename_langext_code ( CODE ,NEW_CODE [,CODESET] )
Locale::Codes::LangExt::add_langext_code_alias ( CODE ,NEW_CODE [,CODESET] )
Locale::Codes::LangExt::delete_langext_code_alias ( CODE [,CODESET] )
These routines are all documented in the Locale::Codes::API man page.
SEE ALSO
Locale::Codes
The Locale-Codes distribution.
Locale::Codes::API
The list of functions supported by this module.
http://www.iana.org/assignments/language-subtag-registry
The IANA language subtag registry.
AUTHOR
See Locale::Codes for full author history.
Currently maintained by Sullivan Beck (sbeck@cpan.org).
COPYRIGHT
Copyright (c) 2011-2013 Sullivan Beck
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.18.2 2013-11-04 Locale::Codes::LangExt(3pm)