Sponsored Content
Top Forums Shell Programming and Scripting Issue with copying files into dir inside for loop Post 302858795 by RudiC on Tuesday 1st of October 2013 12:03:45 PM
Old 10-01-2013
The directory you created is not pointed to by the dest_dir variable:
Code:
mkdir $file_path/ARC_${Last_Day}   --> = /home/etc/ARC_20130930
dest_dir=$ARC_${Last_Day}          --> = ""20130930

as variable ARC_ is undefined. Why don't you use the same single variable to make the directory and then point the cp target to it?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

copying a file from one dir to another dir

hi i have a script compareFiles() { find /tmp/Satya -type f | \ while read filename1 do echo "----------------------------------------$filename1" find /tmp/Satya -type f | \ while read filename2 do if diff $filename1 $filename2 then echo "Both files... (3 Replies)
Discussion started by: Satyak
3 Replies

2. Shell Programming and Scripting

copying files to new dir

Hello, I'm new to shell scripting so I don't really understand what I'm doing wrong. The script I'm trying to do saves all the files (*.c) on the current dir to a list and, one by one, copies them to a new one called Backup. The thing is, if there are already other versions of the files I'm... (6 Replies)
Discussion started by: G3nn
6 Replies

3. UNIX for Advanced & Expert Users

copying of files by userB, dir & files owned by userA

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)
Discussion started by: Hangman2
2 Replies

4. UNIX for Dummies Questions & Answers

Permissions issue after copying files

Hi everyone, I am using mac os x 10.6, and I just copied over a project from a machine with 10.5... And I noticed my ls color is very funky in this directory... I found that my permissions are all messed up, and am wondering if there is a way to recursively fix permissions? This is how they... (3 Replies)
Discussion started by: patrick99e99
3 Replies

5. Shell Programming and Scripting

Copying specific files from one dir to another

Hi Folks, I have one curious case. There are list of following files placed in one directory such as... And updated each month. files.JAN09.csv files.FEB09.csv files.MAR09.csv ..... Now, I need to move a specific files; i.e, For this month, I need to move only OCT09, NOV09, DEC09,... (1 Reply)
Discussion started by: Jerald Nathan
1 Replies

6. Shell Programming and Scripting

issue while copying file dynamically whith in loop?

I need to copy the log file dynamically and that should run in loop , which means it should pick what ever the latest file is updated in that directory. I am able to display the list and copy to directly but i have no idea on how to pick the dynamically updated files. when i use this code, i... (1 Reply)
Discussion started by: johninweb
1 Replies

7. Shell Programming and Scripting

Copying files to new dir structure.

I am trying to figure out a way to script copying specific files from one dir structure to another. I have a dir structure like this: dira/author 1/book 1/file a.epub /book 2/file b.epub /author 2/book 1/file c.epub /author 3/book 1/file d.epub /book 2/file... (2 Replies)
Discussion started by: arcanas
2 Replies

8. Shell Programming and Scripting

Issue with copying files

Hi I have to write a shell script which copy files from one folder to another. When I try to do it directly from command prompt cp filename.dat /outgoing/filename.dat its working fine. But when I put the same command inside a shell script say test.sh its not getting copied. and when I check $?... (3 Replies)
Discussion started by: ravinunna
3 Replies

9. Shell Programming and Scripting

Issue with accessing value inside while loop, outside it

Hi, GetName() { if then echo " Please enter the name: " read Name tempvar=0 while read line do if then tempvar=`expr $tempvar + 1` echo $tempvar ... (10 Replies)
Discussion started by: rituparna_gupta
10 Replies

10. Shell Programming and Scripting

PERL - Copying ONLY files from one dir to another

I'm writing a Perl script which has its 1st step as to copy files from one directory to another directory. The Source directory has got files with extension, without extension, directories etc. But I want to copy ONLY files with no extension. The files with extensions and directories should not get... (2 Replies)
Discussion started by: jhamaks
2 Replies
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)
All times are GMT -4. The time now is 10:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy