01-29-2009
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?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
1) How do I get the name of latest file in a variable?
2) Is it safe to delete all files from a dir
I am doing
cd $dir_name
if return_code > 0
rm *
fi
what are other alternates to delete all files from a dir in a shell script?
:) (5 Replies)
Discussion started by: Hangman2
5 Replies
4. Shell Programming and Scripting
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
pkgkde-override-sc-dev-latest
PKGKDE-OVERRIDE-SC-DEV-LATEST(1) User Contributed Perl Documentation PKGKDE-OVERRIDE-SC-DEV-LATEST(1)
NAME
pkgkde-override-sc-dev-latest - loosen kde-sc-dev-latest Break restrictions
SYNOPSIS
pkgkde-override-sc-dev [-bbase_version] [-vversion]
DESCRIPTION
pkgkde-override-sc-dev-lastest is a helper utility which can be used to generate a dummy kde-sc-dev-latest package without Breaks field
that is present in the original version. Original kde-sc-dev-latest package is used to force KDE Software Compilation modules to be built
against the latest version of the KDE Development Platform modules without bumping versions of a bunch build dependencies for each KDE SC
module. However, while original kde-sc-dev-latest does not cause problems when building in clean chroots, the restrictions imposed by its
Breaks field might be undesirable on the maintainer system when:
o the maintainer wants to (test)build KDE module version X.Y.A against KDE Development Platform X.Y.B where (A > B);
o the maintainer builds a new upstream version of the some KDE Development Platform module on the system that has an old version of some
KDE Development Platform packages installed. For example, even if kdepimlibs does not build depend on kdebase-workspace-dev, original
kde-sc-dev-latest may prevent kdepimlibs X.Y.A to be built on the system which has kdebase-workspace X.Y.B (where A > B) installed.
By default, pkgkde-override-sc-dev-latest generates a dummy kde-sc-dev-latest package in the current working directory that is based on the
current "candidate" version of the original kde-sc-dev-latest (as per apt-cache policy). You may specify a base version with the -b option.
The resulting dummy kde-sc-dev-latest override package will have "base_version+override" as its version unless another one is specified
with -v option. Once the package is generated, you can install it like:
# dpkg --install kde-sc-dev_<version>+override_all.deb
OPTIONS
-bbase_version, --basever=base_version
The version of the original kde-sc-dev-latest package to base an override package on. It must be available in the APT database on the
system. You may also pass special value "latest" to select the latest available version in the APT database. If you specify "priority",
the latest version with the highest priority will be selection. By default (if this option is not specified), candidate version is
selected
-vversion, --version=version
Generate an override package with the specified "version+override" rather than default "base_version+override" version.
AUTHOR
Modestas Vainius <modax@debian.org>
perl v5.14.2 2011-12-26 PKGKDE-OVERRIDE-SC-DEV-LATEST(1)