10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
HI Guys,
Can anyone help me to retrieve the latest file from below example using SFTP
I have below list of files in a folder
v403t.lstprgms.sortin1
val027.d099.fwest.oct2711
xcelrptd.d1400sqp.dec1713.t040459.@02del
xcelrptd.d1400sqp.dec1713.t073308.@02del... (3 Replies)
Discussion started by: heye18
3 Replies
2. Shell Programming and Scripting
hi guys the script is working but i need to change the file that i want to get to the latest.. i will use this as cron so i can get the latest sftp file evryday.
pls help..
set user "big_user"
set IP "XX.XX.XX"
set dir "/export/home/oracle/REF/INPUT"
spawn sftp $user@$IP
expect sftp>
... (7 Replies)
Discussion started by: JONATHAN0919
7 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I need your help in finding the latest files in remote sftp and get those files to local server and process them. Please let me know
I appreciate your valuable inputs.
Thanks
raj (7 Replies)
Discussion started by: rajeevm
7 Replies
4. UNIX for Dummies Questions & Answers
#!/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
5. Shell Programming and Scripting
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? (2 Replies)
Discussion started by: Alok Ranjan
2 Replies
6. Shell Programming and Scripting
Hi All,
I am SFTP ing file from Windows server (Sydney) to Unix host in London (both servers are on different timezones). It appears the upstream (Windows server team) does not do a file housekeeping activity and henceforth there are multiple files i.e. each week the script is scheduled to run... (1 Reply)
Discussion started by: vigdmab
1 Replies
7. Shell Programming and Scripting
Hi,
I want to download the latest file published on remote server using SFTP connection.
The job will run at every 15 min hence should download only the latest file. The fileName will be like ABC_DDHHMISS.txt (DD- day, HH-hour, MI - Min, SS-Sec).
So there will be files with same date for... (23 Replies)
Discussion started by: ssachins
23 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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
10. UNIX for Dummies Questions & Answers
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