Search Results

Search: Posts Made By: Aswarth
3,764
Posted By Aswarth
Rename a file name
Hi,

I am getting a file name from a remote server thru ftp and storing this filename in a variable. I am doing this in ftp mode.
for ex: the filename is like emp_010208.
This file name has to be...
22,614
Posted By Aswarth
To pick the latest file from a folder in FTP
In my case sftp is not working as i dont have the permissions.
can u pls let me know if there is any command to get the name of the latest file from a folder if i am in ftp mode.

thanks
22,614
Posted By Aswarth
To pick the latest file from a folder in FTP
I am logging into a remote server using ftp mode.
In a folder there are set of files like this
emp001_20080526052714.dat
emp001_20080526052715.dat
emp001_20080526052716.dat...
22,614
Posted By Aswarth
concatenating the filename with date
but that folder contains other files apart from the files that I have mentioned.
so how can include the file name in the comand that you have given me like emp_oo1
thanks,
aswarth
22,614
Posted By Aswarth
Concatenating the filename with date
hi,
can you please let me know if there is any command in ftp to pick the latest file in a folder.
for ex the filename is concatenated with date and timestamp like this.
emp001_20080516053646.dat...
22,614
Posted By Aswarth
Concatenating the filename with date
Hi,
I want to concatenate the filename with the current date using the get command in ftp.
for ex:
<filename><date>
emp101_20080526
Can you please let me know the command for this.

thanks,...
4,067
Posted By Aswarth
copying the latest file
I tried using the same cmd in the ftp mode but it throws the foll error.
usage: ls remote-directory local-file

Thanks.
4,067
Posted By Aswarth
copying the latest file
recv remote-file [local-file]
how can we get the file name in the place of [local_file] in the above cmd.
do we have to use any other cmd for that if so pls let me know the cmd also.

thanks.
4,067
Posted By Aswarth
copying the latest file
thank you its working fine when i am in the normal unix mode but when i login into a remote server thru ftp this command is not working..
Is there any other command that shud be used when u r in ftp...
4,067
Posted By Aswarth
copying latest file
I tried using the cmd but it throws me the following error

ksh: awk{print $9}: not found
Usage: cp [-f|-i] [-p] [-S] [-e warn|force|ignore] source_file target_file
cp [-f|-i] [-p] [-S]...
4,067
Posted By Aswarth
copying the latest file
No this folder contains other files apart from these files also.
Can you please send me the script for this.

thanks.
12,782
Posted By Aswarth
Copy the latest file from a folder
Yes I need to check the timestamp also.
so can you please send me the script to pick the latest file everyday.

thanks
4,067
Posted By Aswarth
copying the latest file
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...
12,782
Posted By Aswarth
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...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 09:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy