03-21-2009
Moving extremely large number of files to destination
Hello Techies,
m here with a small issue. Have read out all the relavent threads on unix.com but it was not so good sol. for me.
It's a simple & known issue. I want to move lots of files to dest folder. Actually I want to pick up 1 year older files, but that is even taking lots of time..Later on I want to archive them all.
This command is taking forever - it moved lots of files but i was bored waiting for it to comlplete all transfer (gave it 8 hrs..still in progress !)
find ./ -type f -mtime +79 -print | xargs -n1 -i mv {} /dest/
Below command returns error-
find ./ * -print | xargs -n1 -i mv {} /dest
error: Arg list too long
File name has fix pattern, based on date.
Avarage file size - 3090.
total size of files -5247124 kb.
I need to transfer them .. I dont mind with time taken - but it should give me solution..
Any help please?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a task to move more than 35000 files every two hours, from the same directory to another directory based on a file that has the list of filenames
I tried the following logics
(1)
find . -name \*.dat > list
for i in `cat list` do mv $i test/ done
(2)
cat list|xargs -i mv "{}"... (7 Replies)
Discussion started by: bryan
7 Replies
2. Shell Programming and Scripting
I have a large Filesystem on an AIX server and another one on a Red Hat box. I have syncd the two filesystems using rsysnc.
What Im looking for is a script that would compare to the two filesystems to make sure the bits match up and the number of files match up.
its around 2.8 million... (5 Replies)
Discussion started by: zippdawg2001
5 Replies
3. UNIX for Dummies Questions & Answers
I want to tar large number of files about 150k.
i am using the find command as below to create a file with all file names.
& then trying to use the tar -I command as below.
# find . -type f -name "gpi*" > include-file
# tar -I include-file -cvf newfile.tar
This i got from one of the posts... (2 Replies)
Discussion started by: crux123
2 Replies
4. Shell Programming and Scripting
Hellow i have a large number of files that i want to concatenate to one. these files start with the word 'VOICE_' for example
VOICE_0000000000
VOICE_1223o23u0
VOICE_934934927349
I use the following code:
cat /ODS/prepaid/CDR_FLOW/MEDIATION/VOICE_* >> /ODS/prepaid/CDR_FLOW/WORK/VOICE
... (10 Replies)
Discussion started by: chriss_58
10 Replies
5. UNIX for Dummies Questions & Answers
Hi. I need to delete a large number of files listed in a txt file. There are over 90000 files in the list. Some of the directory names and some of the file names do have spaces in them.
In the file, each line is a full path to a file:
/path/to/the files/file1
/path/to/some other/files/file 2... (4 Replies)
Discussion started by: inakajin
4 Replies
6. Programming
Hi All,
I am just curious, not programming anything of my own. I know there are libraries like gmp which does all such things. But I really need to know HOW they do all such things i.e. working with extremely large unimaginable numbers which are beyond the integer limit. They can do add,... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
7. UNIX for Dummies Questions & Answers
I am running a code like this
foreach list ($tmp)
mv *_${list}.txt ${chart}_${list}.txt #mv: when moving multiple files, last argument must be a directory
mv *_${list}.doc ${chart}_${list}.doc #mv: when moving multiple files, last argument must be a... (3 Replies)
Discussion started by: animesharma
3 Replies
8. Shell Programming and Scripting
Hey, I'm kinda new to the shell scripting and I don't wanna mess things up yet :)
Looking for a solution to the following:
I need to move all the files like "filename.failed.dateandtime" to another directory also renaming them "filename.ready". I can't figure how to do this with multiple files... (4 Replies)
Discussion started by: sg3
4 Replies
9. Shell Programming and Scripting
Want to sftp large number of files ... approx 150 files will come to server every minute. (AIX box)
Also need make sure file has been sftped successfully...
Please let me know :
1. What is the best / faster way to transfer files?
2. should I use batch option -b so that connectivity will be... (3 Replies)
Discussion started by: vegasluxor
3 Replies
10. Shell Programming and Scripting
Hi Guys,
how to count number of files successfully copied while coping files from source to destination path
ex:10 files from source to target location copying
if 8 files copied successfully then
echo successfully copied=8
failure=2 files
if two files get error to coping files from... (23 Replies)
Discussion started by: sravanreddy
23 Replies
LEARN ABOUT REDHAT
fontimport
fontimport(1) teTeX fontimport(1)
NAME
fontimport - import fonts into the teTeX directory structure
SYNOPSIS
fontimport [-d] [-f] [-t] [-m MF-mode] path ...
DESCRIPTION
fontimport imports TFM and PK font files into appropriate places in the teTeX directory tree and revises teTeX's filename database accord-
ingly.
Each path may be a font file or a directory, either absolute or relative to the current directory. All subdirectories of a given directory
are searched for font files. Don't specify directory names that are symbolic links, however, since (at least some versions of) find(1)
won't dereference them.
A font's destination is determined by variables in the file texmf.cnf. By default, fontimport will issue a warning to stderr instead of
overwriting an existing font file. The -f flag forces overwriting.
fontimport can cope with font names conforming the 8.3-namescheme, too, so you can import fonts from either a TDS-compliant or MSDOS
installation. emTeX's font libraries are not supported. If you want to import fonts from a font library, you need to unpack it with emTeX's
fontlib utility first.
The full pathname of each font successfully imported is echoed to stdout. When fontimport can not parse a font's name, it will import the
font using a path element of "/unknown/" and issue a warning on stderr.
fontimport tries to guess the mode of PK files. With the -m flag you may specify a fallback mode to be used if the mode can't be guessed.
Options:
-m MF-MODE
default Metafont mode for PK files if autodetection fails
-d delete
delete font files after copying (i.e., move them)
-f force
overwrite existing fonts
-t test
just echo each font's destination (if any); don't move or copy
SEE ALSO
allec(1), allneeded(1), fontexport(1), Fontname: Filenames for TeX Fonts (http://tug.org/fontname).
AUTHOR
Thomas Esser (te@informatik.uni-hannover.de)
teTeX 4/99 fontimport(1)