Hi guys,
I have a directory in UNIX having files with the below format, i need to pickup the latest file having recent timestamp embedded on it, then need to rename it to a standard file name.
Below is the file format:
filename_yyyymmdd.csv, i need to pick the latest and move it with the... (1 Reply)
Please help me out how to identify the latest file in one directory by looking at file's timestamp or datestamp. You can say using system command. Thanks (10 Replies)
Hi,
I have a ftp script to ftp files from unix to windows. Now i need to pull the latest file from unix to windows. It is not working.
ftp -nvi $SERVER > ${FILE_DIR}/NavigationftpLog << EOD
user $USER $PWD
lcd $FILE_DIR
echo "the local directory is $FILE_DIR"
cd $Remote_PATH
echo... (2 Replies)
Dear Friends,
Am very much new to UNIX and this is my first task in UNIX. Can you pls help me with the below problem:
i want to get the latest file from unix to mainframes. I did the following
remote ls -t $AMR/data01/extract/monthly/source/-
AMR_D*""_REC_STAT.dat -
> v1
remote... (2 Replies)
Hi Everyone,
I am writing a shell script and I am struck here:
I need to find the latest file in a directory depending upon the date.
For example:
The files in the directory are:
Filename_bo_20110619
Filename_bo_20110620
Filename_bo_20110621
Filename_bo_20110622
So here, I want... (2 Replies)
Hi All,
I am using the below command to find the latest file in a dir:
ls -tr $v_sftphomedir/$v_sourcefile |tail -1
or
ls -t1 $v_sftphomedir/$v_sourcefile |head -1
and the outpur returned is below:
/home/cobr_sftp/var/controllingload/Backup/Dbrwds_Div_1796050246.txt
I need only the... (5 Replies)
I am trying to look into multiple directories and pluck out the latest version of a specific file, regardless of where it sits within the directory structure.
Ex:
The file is a .xls file and could have a depth within the directory of anywhere from 1-5
Working directory - Folder1... (6 Replies)
Dear All,
I have getting data as follows, the second field signifies table name and last one is time stamp. I have return always latest record based on time stamp. Could you please help me ?
I/P
====
... (1 Reply)
Hi,
Actually i got a client requirment and i need experts help here.
we have 30 parent directories and in that we have so many subdirectories and files. i want to find only latest timestamp files with out touching subdirectories
and need to redirect the latest files into some other... (3 Replies)
I believe there are couple of syntax issues in my script, couldn't find them :(
can someone help me with fixing it to make it work.
cd /abcde/
#get the latest filename excluding subdirs
filename=`ls -ltr | grep ^- | tail -1 | awk '{print $8}'`
#get system date and file timestamp and... (3 Replies)
Discussion started by: simpltyansh
3 Replies
LEARN ABOUT SUSE
cnf
COMMAND-NOT-FOUND(1) http://en.opensuse.org/Sco COMMAND-NOT-FOUND(1)NAME
command-not-found - A command-not-found handler
SYNOPSIS
command-not-found {binary_name} {repository}
ARGUMENTS
The following arguments are required:
binary_name
The name of binary you are looking for.
repository
The name of repository for search. For most cases, use zypp
DESCRIPTION
command-not-found handler is designed to tell users which package contains a missing command.
The handler is integrated to bash(1) and zsh(1) shells and is not necessary to call it directly. Just type a name of the command in your
favourite shell and you'll get a result.
If you consider c-n-f handler useless, just add unset command_not_found_handle to your profile or remove the command-not-found package.
Handler doesn't call the command-not-found binary directly, it only prints info about it. If you want to invoke it automatically, just add
export COMMAND_NOT_FOUND_AUTO=1 to your bash profile.
EXAMPLE : NORMAL USAGE
For example you want to try blender, because you have heard that is an amazing program. So just type blender in shell:
$ blender
You get the following output:
The program 'blender' can be found in the following package:
* blender [ path: /usr/bin/blender, repository: zypp (openSUSE 11.1-0) ]
Try installing with:
sudo zypper install blender
bash: blender: command not found
SEE ALSO scout(1)AUTHOR
Pavol Rusnak <stick@gk2.sk>
Developer
http://gitorious.org/opensus 08/07/2009 COMMAND-NOT-FOUND(1)