Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Using UNIX Commands with Larger number of Files Post 302729417 by Scrutinizer on Friday 9th of November 2012 03:42:51 PM
Old 11-09-2012
This can be avoided with a for loop. For example:
Code:
for file in Inputpath/*.[Pp][Dd][Ff]
do
  cp "$file" outputpath
done

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

sending larger files via ftp

hi all, i am looking for ways to make ftp efficient by tuning the parameters currently, tcp_max_buf is 1 MB tcp_xmit_hiwat is 48 KB say to transmit multiple 2 gb files from unix server to mainframe sys, will increasing the window size or the send buffer size of the current TCP/IP... (6 Replies)
Discussion started by: matrixmadhan
6 Replies

2. Shell Programming and Scripting

How to initialize array with a larger number?

Language: ksh OS: SunOS I have been getting the 'subscript out of range' error when the below array variable gets elements greater that 1024. I understand that 1024 is the default size for 'set -A' dynamic array, but is there a way to initialize it with a larger number? set -A arr `grep... (6 Replies)
Discussion started by: ChicagoBlues
6 Replies

3. AIX

Tar files larger than 2GB

Hi, Does anyone know if it is possible to tar files larger than 2GB? The reason being is they want me to dump a single file (which is around 20GB) to a tape drive and they will restore it on a Solaris box. I know the tar have a limitation of 2GB so I am thinking of a way how to overcome this.... (11 Replies)
Discussion started by: depam
11 Replies

4. UNIX for Dummies Questions & Answers

unix commands related to ftp of files..

Hi, I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies

5. Programming

Using basic UNIX commands to make/compile JAVA files

Hello! This is my first post, and I just learned what UNIX was this week. For a JAVA programming class I am taking, I must be able to create a directory in UNIX, use the nano command to create a JAVA program, compile it, and then run it on the command prompt using the java command. For some... (5 Replies)
Discussion started by: UNdvoItX
5 Replies

6. UNIX for Dummies Questions & Answers

7z command for files larger than 4GB ( unzip doesn't work)

My unzip command doesn't work for files that are greater than 4GB. Consider my file name is unzip -p -a filename.zip, the command doesn't work since the size of the file is larger. I need to know the corresponding 7z command for the same. This is my Unix shell script program: if then ... (14 Replies)
Discussion started by: chandraprakash
14 Replies

7. Shell Programming and Scripting

Backingup larger files with TAR command

I need to backup my database but the files are very large and the TAR command will not let me. I searched aids and found that I could do something with the mknod, COMPRESS and TAR command using them together. I appreciate your help. (10 Replies)
Discussion started by: frizcala
10 Replies

8. UNIX for Dummies Questions & Answers

Split larger files into smaller ones with Column names

Hi, I have one large files of 100000 rows with header column. Eg: Emp Code, Emp Name 101,xxx 102,YYY 103,zzz ... ... I want to split the files into smaller files with only 30000 rows each..File 1,2 and 3 must have 30000 rows and file 4 must contain 10000 rows. But the column... (1 Reply)
Discussion started by: Nivas
1 Replies

9. UNIX for Beginners Questions & Answers

Need to select files larger than 500Mb from servers

I need help modifying these two scripts to do the following: - print files in (MB) instead of (KB) - only select files larger than 500MB -> these will be mailed out daily - Select all files regardless of size all in (MB) -> these will be mailed out once a week this is what i have so far and... (5 Replies)
Discussion started by: donpasscal
5 Replies

10. UNIX for Beginners Questions & Answers

Help with Expect script for pulling log files size larger than 500Mb;

I am new at developing EXPECT scripts. I'm trying to create a script that will automatically connect to a several UNIX (sun solaris and HPUX) database server via FTP and pull the sizes of the listener/alert log files from specified server directory on the remote machines. 1. I want the script... (7 Replies)
Discussion started by: mikebantor
7 Replies
LOCALEDEF(1)							 Linux User Manual						      LOCALEDEF(1)

NAME
localedef - compile locale definition files SYNOPSIS
localedef [options] outputpath localedef --list-archive [options] localedef --delete-from-archive [options] localename ... localedef --add-to-archive [options] compiledpath localedef --version localedef --help localedef --usage DESCRIPTION
The localedef program reads the indicated charmap and input files, compiles them to a binary form quickly usable by the locale functions in the C library (setlocale(3), localeconv(3), etc.), and places the output in outputpath. The outputpath argument is interpreted as follows: * If outputpath contains a slash character ('/'), it is interpreted as the name of the directory where the output definitions are to be stored. In this case, there is a separate output file for each locale category (LC_TIME, LC_NUMERIC, and so on). * If the --no-archive option is used, outputpath is the name of a subdirectory in /usr/lib/locale where per-category compiled files are placed. * Otherwise, outputpath is the name of a locale and the compiled locale data is added to the archive file /usr/lib/locale/locale-archive. A locale archive is a memory-mapped file which contains all the system-provided locales; it is used by all localized programs when the environment variable LOCPATH is not set. In any case, localedef aborts if the directory in which it tries to write locale files has not already been created. If no charmapfile is given, the value ANSI_X3.4-1968 (for ASCII) is used by default. If no inputfile is given, or if it is given as a dash (-), localedef reads from standard input. OPTIONS
Operation-selection options A few options direct localedef to do something other than compile locale definitions. Only one of these options should be used at a time. --delete-from-archive Delete the named locales from the locale archive file. --list-archive List the locales contained in the locale archive file. --add-to-archive Add the compiledpath directories to the locale archive file. The directories should have been created by previous runs of lo- caledef, using --no-archive. Other options Some of the following options are sensible only for certain operations; generally, it should be self-evident which ones. -f charmapfile, --charmap=charmapfile Specify the file that defines the character set that is used by the input file. If charmapfile contains a slash character ('/'), it is interpreted as the name of the character map. Otherwise, the file is sought in the current directory and the default directory for character maps. If the environment variable I18NPATH is set, $I18NPATH/charmaps/ and $I18NPATH/ are also searched after the current directory. The default directory for character maps is printed by localedef --help. -i inputfile, --inputfile=inputfile Specify the locale definition file to compile. The file is sought in the current directory and the default directory for locale definition files. If the environment variable I18NPATH is set, $I18NPATH/locales/ and $I18NPATH are also searched after the current directory. The default directory for locale definition files is printed by localedef --help. -u repertoirefile, --repertoire-map=repertoirefile Read mappings from symbolic names to Unicode code points from repertoirefile. If repertoirefile contains a slash character ('/'), it is interpreted as the pathname of the repertoire map. Otherwise, the file is sought in the current directory and the default di- rectory for repertoire maps. If the environment variable I18NPATH is set, $I18NPATH/repertoiremaps/ and $I18NPATH are also searched after the current directory. The default directory for repertoire maps is printed by localedef --help. -A aliasfile, --alias-file=aliasfile Use aliasfile to look up aliases for locale names. There is no default aliases file. --prefix=pathname Set the prefix to be prepended to the full archive pathname. By default, the prefix is empty. Setting the prefix to foo, the ar- chive would be placed in foo/usr/lib/locale/locale-archive. -c, --force Write the output files even if warnings were generated about the input file. -v, --verbose Generate extra warnings about errors that are normally ignored. --quiet Suppress all notifications and warnings, and report only fatal errors. --posix Conform strictly to POSIX. Implies --verbose. This option currently has no other effect. POSIX conformance is assumed if the en- vironment variable POSIXLY_CORRECT is set. --replace Replace a locale in the locale archive file. Without this option, if the locale is in the archive file already, an error occurs. --no-archive Do not use the locale archive file, instead create outputpath as a subdirectory in the same directory as the locale archive file, and create separate output files for locale categories in it. This is helpful to prevent system locale archive updates from over- writing custom locales created with localedef. -?, --help Print a usage summary and exit. Also prints the default paths used by localedef. --usage Print a short usage summary and exit. -V, --version Print the version number, license, and disclaimer of warranty for localedef. EXIT STATUS
One of the following exit values can be returned by localedef: 0 Command completed successfully. 1 Warnings or errors occurred, output files were written. 4 Errors encountered, no output created. ENVIRONMENT
POSIXLY_CORRECT The --posix flag is assumed if this environment variable is set. I18NPATH A colon-separated list of search directories for files. FILES
/usr/share/i18n/charmaps Usual default character map path. /usr/share/i18n/locales Usual default path for locale definition files. /usr/share/i18n/repertoiremaps Usual default repertoire map path. /usr/lib/locale/locale-archive Usual default locale archive location. /usr/lib/locale Usual default path for compiled individual locale data files. outputpath/LC_ADDRESS An output file that contains information about formatting of addresses and geography-related items. outputpath/LC_COLLATE An output file that contains information about the rules for comparing strings. outputpath/LC_CTYPE An output file that contains information about character classes. outputpath/LC_IDENTIFICATION An output file that contains metadata about the locale. outputpath/LC_MEASUREMENT An output file that contains information about locale measurements (metric versus US customary). outputpath/LC_MESSAGES/SYS_LC_MESSAGES An output file that contains information about the language messages should be printed in, and what an affirmative or negative an- swer looks like. outputpath/LC_MONETARY An output file that contains information about formatting of monetary values. outputpath/LC_NAME An output file that contains information about salutations for persons. outputpath/LC_NUMERIC An output file that contains information about formatting of nonmonetary numeric values. outputpath/LC_PAPER An output file that contains information about settings related to standard paper size. outputpath/LC_TELEPHONE An output file that contains information about formats to be used with telephone services. outputpath/LC_TIME An output file that contains information about formatting of data and time values. CONFORMING TO
POSIX.1-2008. EXAMPLE
Compile the locale files for Finnish in the UTF-8 character set and add it to the default locale archive with the name fi_FI.UTF-8: localedef -f UTF-8 -i fi_FI fi_FI.UTF-8 The next example does the same thing, but generates files into the fi_FI.UTF-8 directory which can then be used by programs when the envi- ronment variable LOCPATH is set to the current directory (note that the last argument must contain a slash): localedef -f UTF-8 -i fi_FI ./fi_FI.UTF-8 SEE ALSO
locale(1), charmap(5), locale(5), repertoiremap(5), locale(7) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 LOCALEDEF(1)
All times are GMT -4. The time now is 07:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy