02-08-2012
@mail2mura
Please edit you post to remove typing errors. The command looks unlikely (with the #) and the error message is impossible (with the $).
Addenda:
If $dest_dir is a subdirectory of $src_dir there is considerable scope for this script to go wrong.
Last edited by methyl; 02-08-2012 at 10:24 AM..
This User Gave Thanks to methyl For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I have a shell script(ksh) which has the code as follows.
------------------
cd $mydir
for i in `find ./ -type f -mtime +$k`
do
echo $i
done
-----------------------
And in $mydir , i have some files which have space in theie names like "Case att15".
The out put of the... (6 Replies)
Discussion started by: rajugp1
6 Replies
2. Shell Programming and Scripting
Can you please tell me how to find a file in a directory and then if it exists i need to place it in a different folder?
I have to use "ls -lt" command
I mean this command is something existing one . can you please tell me how i set the directory path. Like
dir1/dir2/filename.csv to... (8 Replies)
Discussion started by: pochaman
8 Replies
3. Shell Programming and Scripting
Is there a way to move the files ALONE from one dir to another dir?
In my source dir,I have files as well as directories.I want to move the files alone to another dir and the directories should remain undisturbed.
If I use mv * < target dir> ,then the directories also moved.
Any... (4 Replies)
Discussion started by: prasperl
4 Replies
4. Shell Programming and Scripting
Hi,
I have a requirement where
I need to move Bunch of folders containing multiple files to another archive location.
i want to use mv command .I am thinking when we use mv command to move directory does it create directory 1st and then move all the files ?
e.g
source... (4 Replies)
Discussion started by: rkmbcbs
4 Replies
5. UNIX for Dummies Questions & Answers
I am currently using below command to get the 1st three characters of a file(PDM). Issue is, when i use find command in root dir, it finds all the files in sub dir also.
How to limit the find command search to a given path only(ie: say only find file in apps/cmplus/datamigration/data path... (3 Replies)
Discussion started by: abhi_n123
3 Replies
6. Shell Programming and Scripting
Hi All,
I'm a bit new to Linux environment, moderately okay when it comes to Unix AIX. I'm facing an issue while trying to run a simple find command:
$ for file in `find . -name *.*`
> do
> ls $file
> done
This is throwing the following error:
Strangely, a few minutes... (4 Replies)
Discussion started by: adi_2_chaos
4 Replies
7. Shell Programming and Scripting
Hi All,
I'm facing this below error when I move files using find command....Please help out......
$ find /home/aa/ab -mtime +90 -type f -exec mv -f {} /home/aa/ab/ac \;
mv: 0653-405 /home/aa/ab/ac/MP_060520111245.csv and /home/aa/ab/ac/MP_060520111245.csv are identical.
mv: 0653-405... (2 Replies)
Discussion started by: HemaV
2 Replies
8. Shell Programming and Scripting
Guys,
Here is my requirement..
Sample.cfg
file="*log.gz *txt.gz"
sample.sh
#!/bin/sh
. $HOME/Sample.cfg
find . -name "$file" -mtime +20 -exec ls -la {} \;
Its not finding the given *log.gz and txt.gz files.
Could anyone please help me? (8 Replies)
Discussion started by: AraR87
8 Replies
9. Shell Programming and Scripting
Hi
I am using the below code to find mv the files.
Files are moving to the Target location as expected but find is displaying some errors like below.
find ./ -name "Archive*" -mtime +300 -exec mv {} /mnt/X/ARC/ \;
find: `./Archive_09-30-12': No such file or directory
find:... (6 Replies)
Discussion started by: rakeshkumar
6 Replies
10. Shell Programming and Scripting
Hi Guys,
I have a file called error.logs. am just trying to display the content in the file which was modified last 1 day. I tried below command but it doesnt give the proper output.
find /u/text/vinoth/bin "error.logs" -mtime -1 -exec cat {} \; >> mail.txt
Any help is much... (21 Replies)
Discussion started by: Vinoth Kumar G
21 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)