Sponsored Content
Full Discussion: Copy latest generated file
Top Forums Shell Programming and Scripting Copy latest generated file Post 302526304 by Alok Ranjan on Tuesday 31st of May 2011 06:05:25 AM
Old 05-31-2011
Copy latest generated file

Hi,
There is csv file generated at /usr/data on server1 on monthly basis.
It is in the format reportYYYYDD(e.g 201105).
I needed a script which would copy the latest generated file from the location to another server at /usr/loc
Please can you help?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy the latest file from a folder

Hi, I have a problem. I have some text files in a folder. The names can be like: emp_20080307053015.dat emp_20080306053015.dat emp_20080305053015.dat emp_20080304053015.dat The date format appended is like yyyymmdd and timestamp. What i need is i have to copy the latest file every... (3 Replies)
Discussion started by: Aswarth
3 Replies

2. Shell Programming and Scripting

Copy the latest file from one directory to another

Hi All, I am in the directory a/b/processed the files in this directories are -rw-r--r-- 1 owb users 330 Aug 8 chandantest.txt_08082008 -rw-r--r-- 1 owb users 220 Aug 7 chandantest.txt_07082008 -rw-r--r-- 1 owb users 330 Aug 6... (3 Replies)
Discussion started by: chandancsc
3 Replies

3. Shell Programming and Scripting

Copy the latest file to a directory

Hi Team, I wish to copy the latest file of pattern "MyFile*" to some other location. I need to do all the operation in a single command separated by |. ls -rt <MyFile*> | tail -1 | <copy command>. How can I do? Please help me. Thanks, Kanda (2 Replies)
Discussion started by: spkandy
2 Replies

4. Shell Programming and Scripting

copy the latest file in the remote server's directory

Hi Expert Team, I performed the below piece of code to copy the latest file in the remote server's directory to the same server's other directory. But it is not working properly. How can i handle this? Can you please help me..? ssh ${REMOTE_USERID}@${REMOTE_HOSTNAME} "cp -p `ssh... (3 Replies)
Discussion started by: spkandy
3 Replies

5. Shell Programming and Scripting

Need to copy latest file using SFTP

Hi All, In my unix server, I have the following files: h1.txt h2.txt h3.txt and through SFTP i need to copy only the latest file to another unix server. Can you please let me know what command i need to use. Thanks in Advance, (2 Replies)
Discussion started by: HemaV
2 Replies

6. UNIX for Dummies Questions & Answers

Log file not getting generated

Hi , Log file is not getting generated. any suggestion? Thanks date1=$(date '+%m/%d/%y-%H:%M:%S') log="wrapper.log.$date1" echo " somethng" > $log (2 Replies)
Discussion started by: ajincoep
2 Replies

7. UNIX for Dummies Questions & Answers

Copy the latest (last file) in given folder

#!/bin/bash for i in {1..1536..1} do #find /home/test/Desktop/up111/workplace/Malware/$i/logs for a in /home/test/Desktop/up111/workplace/Malware/$i/logs/* do #max=a for b in /home/test/Desktop/up111/workplace/Malware/$i/logs/* do ... (4 Replies)
Discussion started by: upvan111
4 Replies

8. Shell Programming and Scripting

Copy latest files from another server

Hi, I wanted to copy monthly generated csv file(s)( of latest date) at one server to my current server. So I wrote the following script, but does not work. The script is invoked on my current server Can you please help? !/bin/ksh #. /apps/comp/ cd /apps/di/dev/import/paper ssh hpqad02... (3 Replies)
Discussion started by: Alok Ranjan
3 Replies

9. UNIX and Linux Applications

Need to copy the latest file from Unix server to Shared folder

Hi All, One job in unix server will generate .csv files daily. I need to copy the latest of these .csv file from the unix server to the shared drive/folder in windows through unix script. My shared folder will look something like W:\some folder(for example). Could any one of you please help... (3 Replies)
Discussion started by: jaya@123
3 Replies

10. UNIX for Beginners Questions & Answers

Modified or latest files copy from windows to Linux

To copy the file from windows to linux i use pscp command(pscp source user@destination). Know i want to copy the latest modified or created files from windows to linux. could any one please help me out with it. Thanks and Regards, Sourabh (2 Replies)
Discussion started by: SourabhChavan
2 Replies
CTXTOOLS(1)							      ConTeXt							       CTXTOOLS(1)

NAME
ctxtools - clean up temporary ConTeXt files, install latest ConTeXt SYNOPSIS
ctxtools [ OPTION ... ] DESCRIPTION
ctxtools is useful for dealing with ConTeXt source and generated files and for installing new versions of ConTeXt. OPTIONS
--help Print the available options. --purgefiles Get rid of many temporary files generated by ConTeXt. You can give the --all option to remove a larger fraction of those files, and the --recurse option to remove these files also in subdirectories. --contextversion Show the date of the ConTeXt macros and the format file. Useful after upgrading ConTeXt (perhaps using --updatecontext) to check whether the new formats and macros are visible to the TeX path searches (see kpsewhich(1). --updatecontext Download the latest ConTeXt distribution and install it in the TEXMFLOCAL tree (see kpsewhich(1) for information on TeX path search- ing). TEXMFLOCAL usually points to a system-wide location. If you want to install the new ConTeXt in your home directory (i.e. an install for one user), then set the TEXMFLOCAL environment variable while running ctxtools. For example, using the syntax of the Bourne shell sh(1): TEXMFLOCAL=$HOME/texmf ctxtools --updatecontext --documentation Generate a .ted file from the source file. See also the --module option to texexec(1). --patternfiles [languagecode] Generate pattern files. You can also give the --all, --xml, and --utf8 options. ENVIRONMENT
TEXMFLOCAL Used by --updatecontext to decide where to install the distribution. SEE ALSO
texexec(1), texmfstart(1). ConTeXt wiki <http://www.contextgarden.net>. BUGS
This manual page is not complete. AUTHOR
This manual page was written by Sanjoy Mahajan <sanjoy@mit.edu>. It is in the public domain. ctxtools 1.3.3 January 2007 CTXTOOLS(1)
All times are GMT -4. The time now is 07:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy