Itd be nice to know so if you signify file names with a capital letter in them because they are part of a structure you are constantly moving or backing up youd be able to do so easilly.
Oh, just ONE capital letter?
should work fine. If it doesn't, please post what it actually did, including error output even if it didn't actually succeed in copying anything.
I am new user to solaris and installed solaris operating system on full Harddisk 120Gb. I am unable to copy music files to desktop and /home directory.
One thing happened while registering is- i entered login-root and its password. The message prompted your system is crashed. Is it because of... (1 Reply)
hi
I want to copy all files from the current directory and move to .archive file.
Moreover,I want to add .bak to each file name, that will be copied.
How can I do that? (4 Replies)
I am userB and have a dir
/temp1
This dir is owned by me.
How do I recursively copy files from another users's dir userA?
I need to preserve the original user who created files, original group information, original create date, mod date etc.
I tried
cp -pr /home/userA/* .
... (2 Replies)
Hi All,
I'm trying to list some files from my log directory
and files are like this
log.20110302_20.gz
log.20110302_21.gz
log.20110302_22.gz
log.20110302_23.gz
log.20110303_00.gz
log.20110303_01.gz
log.20110303_02.gz
............
log.20110311_22.gz
log.20110311_23.gz... (2 Replies)
Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
... (4 Replies)
Is it possible to make a bash script such that entering a command in all capital letters would be equivalent to using "sudo" before that command?
For example:
"sudo chmod 777 foo.txt" becomes "CHMOD 777 foo.txt" (3 Replies)
With use of sed/awk, how can I print all possible combinations of a word with caps/non-caps.
Eg
Applying operation on "cap" should generate output as follows.
cap
CAP
Cap
cAp
caP
CAp
cAP
CaP (12 Replies)
All,
I need to grab and rename common files from several unique directory structures. For example, the directory structures looks like:
/unique_dir/common/common/common/person_name_dir/common_file.txt
There are over 90,000 of these text files that I'd like to put in a single directory as... (5 Replies)
I'm trying to do this exact same thing, so far I have created this to move files
i've named my script CP.sh
#!/bin/bash
cd /root/my-documents/NewDir/
for f in *.doc
do cp -v $f root/my-documents/NewDir $f{%.doc}
done
When i go to run this in the console i type, bin/sh/ CP.sh
but it... (7 Replies)
Discussion started by: MKTM_93_SIMP
7 Replies
LEARN ABOUT SUSE
locale::language
Locale::Language(3pm) Perl Programmers Reference Guide Locale::Language(3pm)NAME
Locale::Language - ISO two letter codes for language identification (ISO 639)
SYNOPSIS
use Locale::Language;
$lang = code2language('en'); # $lang gets 'English'
$code = language2code('French'); # $code gets 'fr'
@codes = all_language_codes();
@names = all_language_names();
DESCRIPTION
The "Locale::Language" module provides access to the ISO two-letter codes for identifying languages, as defined in ISO 639. You can either
access the codes via the "conversion routines" (described below), or via the two functions which return lists of all language codes or all
language names.
CONVERSION ROUTINES
There are two conversion routines: "code2language()" and "language2code()".
code2language()
This function takes a two letter language code and returns a string which contains the name of the language identified. If the code is
not a valid language code, as defined by ISO 639, then "undef" will be returned.
$lang = code2language($code);
language2code()
This function takes a language name and returns the corresponding two letter language code, if such exists. If the argument could not
be identified as a language name, then "undef" will be returned.
$code = language2code('French');
The case of the language name is not important. See the section "KNOWN BUGS AND LIMITATIONS" below.
QUERY ROUTINES
There are two function which can be used to obtain a list of all language codes, or all language names:
"all_language_codes()"
Returns a list of all two-letter language codes. The codes are guaranteed to be all lower-case, and not in any particular order.
"all_language_names()"
Returns a list of all language names for which there is a corresponding two-letter language code. The names are capitalised, and not
returned in any particular order.
EXAMPLES
The following example illustrates use of the "code2language()" function. The user is prompted for a language code, and then told the
corresponding language name:
$| = 1; # turn off buffering
print "Enter language code: ";
chop($code = <STDIN>);
$lang = code2language($code);
if (defined $lang)
{
print "$code = $lang
";
}
else
{
print "'$code' is not a valid language code!
";
}
KNOWN BUGS AND LIMITATIONS
o In the current implementation, all data is read in when the module is loaded, and then held in memory. A lazy implementation would be
more memory friendly.
o Currently just supports the two letter language codes - there are also three-letter codes, and numbers. Would these be of any use to
anyone?
SEE ALSO
Locale::Country
ISO codes for identification of country (ISO 3166). Supports 2-letter, 3-letter, and numeric country codes.
Locale::Script
ISO codes for identification of written scripts (ISO 15924).
Locale::Currency
ISO three letter codes for identification of currencies and funds (ISO 4217).
ISO 639:1988 (E/F)
Code for the representation of names of languages.
http://lcweb.loc.gov/standards/iso639-2/langhome.html
Home page for ISO 639-2.
AUTHOR
Neil Bowers <neil@bowers.com>
COPYRIGHT
Copyright (C) 2002-2004, Neil Bowers.
Copyright (c) 1997-2001 Canon Research Centre Europe (CRE).
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.1 2010-05-13 Locale::Language(3pm)