Sponsored Content
Top Forums Shell Programming and Scripting How do I get the name of latest file? Post 302273084 by Hangman2 on Friday 2nd of January 2009 03:06:13 PM
Old 01-02-2009
Thanks - It worked.

Thanks

Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to Grab the latest file

I have been trying to use the find command to grab the latest file in a directory and move it to another area. I can't seem to get only that file, I end up getting everything for the day. Any ideas? Thank you (1 Reply)
Discussion started by: n9ninchd
1 Replies

2. UNIX for Dummies Questions & Answers

Getting latest file from ftp

Hi, i have multile JAMA01.DAT.* files in my ftp. how can i get the latest file in from the ftp by executing the script :rolleyes:? Regards, Arun S (3 Replies)
Discussion started by: arunavlp
3 Replies

3. Shell Programming and Scripting

how to get the latest file

I am trying to scp the latest file which ends with "_abc.log". Can some help me figure out how can do that? (3 Replies)
Discussion started by: shehzad_m
3 Replies

4. Shell Programming and Scripting

get latest file

i have the following in my directory x: 3 files with the word "LIST" inside the files 2 files without the word "LIST" 1 folder (sudirectory) i want to get the filename of the latest file (timestamp) with the word "LIST". by the way the script and the list of files are in seperate... (4 Replies)
Discussion started by: inquirer
4 Replies

5. Shell Programming and Scripting

To get the latest file

Hi Experts Team, I wish to store the latest file name of partcular pattern in the remote server in a variable. i tried this LATEST_FILE=`ssh ${USER_ID}@${REMOTE_HOSTNAME} 'ls -t ${SOURCE_DIRECTORY}/${SOURCE_FILEPATTERN}'` but its nt working..pls guide me.. Regards, Kanda (2 Replies)
Discussion started by: spkandy
2 Replies

6. Shell Programming and Scripting

Rename The Latest File

i need to get the latest file based on timestamp. assuming that i have the following files: $ ls -latr total 40 drwxr-sr-x 6 pcrdftdv pcrdgrp 512 Jun 30 12:53 .. -rwxrwxrwx 1 pcrdftdv pcrdgrp 6 Jul 07 13:35 sample1.csv -rwxr-xr-x 1 pcrdftdv pcrdgrp 6... (3 Replies)
Discussion started by: wtolentino
3 Replies

7. Shell Programming and Scripting

search for latest file

Hi, In need to write a bash script which will be run periodically to check the files in a target directory. This receives files on an ad hoc basis and the script need to compare the time stamp of the latest file received with system time and write a message to the server log file if the time... (2 Replies)
Discussion started by: mark_s_g
2 Replies

8. Shell Programming and Scripting

Shell script to get the latest file from the file list and move

Hi, Anybody help me to write a Shell Script Get the latest file from the file list based on created and then move to the target directory. Tried with the following script: got error. A=$(ls -1dt $(find "cveit/local_ftp/reflash-parts" -type f -daystart -mtime -$dateoffset) | head... (2 Replies)
Discussion started by: saravan_an
2 Replies

9. Shell Programming and Scripting

Retaining latest file

Hi All, I have a requirement where there are 2 files saved on unix directory with names anil_111 and anil_222. I just have to retain the latest file and delete the old file from the directory. Please help me with the shell script to perform this. Thanks, Anil (7 Replies)
Discussion started by: anil029
7 Replies

10. Shell Programming and Scripting

Picking the latest file based on a timestamp for a Dynamic file name

Hi , I did the initial search but could not find what I was expecting for. 15606Always_9999999997_20160418.xml 15606Always_9999999998_20160418.xml 15606Always_9999999999_20160418.xml 9819Always_99999999900_20160418.xml 9819Always_99999999911_20160418.xmlAbove is the list of files I... (4 Replies)
Discussion started by: chillblue
4 Replies
RAPID(6)							       Games								  RAPID(6)

NAME
rapid - content download tool for spring SYNOPSIS
rapid [options] <action> [<argument>] rapid-spring [options] <action> [<argument>] DESCRIPTION
Rapid manages downloads of content for the spring RTS engine. OPTIONS
action in the command line is one of: upgrade: Install the latest package for all pinned tags. clean-upgrade: Equivalent to 'upgrade' followed by 'uninstall-unpinned'. pin: Pins a tag and installs the latest package for that tag. unpin: Unpins a tag. Does not uninstall any packages. install: Install a package. Does not pin any tags. uninstall: Uninstall a package. Unpin its tag if any. list-tags: List all tags that contain <argument>. list-pinned-tags: Idem, but only pinned tags. list-packages: List all packages whose name contains <argument>. list-installed-packages: Idem, but only installed packages. uninstall-unpinned: Keep only the pinned tags and all dependencies. collect-pool: Remove pool files not needed by any installed package. make-sdd: Extract pool files into a .sdd archive. these are the possible options: -h, --help show this help message and exit --datadir=DATADIR Override the default data directory. (~/.spring on Linux or the one reported by unitsync on Windows) --unitsync Use unitsync to locate the data directory Spring uses. --no-unitsync Do not use unitsync. EXAMPLES
rapid pin xta:latest # installs latest XTA rapid pin s44:latest # installs latest Spring: 1944 rapid upgrade # upgrade all pinned tags SEE ALSO
rapid-gui(6), spring(6) AUTHOR
Tobi Vollebregt <tobivollebregt@gmail.com> This manual page was written by Jan Dittberner <jandd@debian.org>, for the Debian project (but may be used by others). rapid August 2010 RAPID(6)
All times are GMT -4. The time now is 09:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy