10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
hi,
We have a huge directory that ha 5.1 Million files in it. We are trying to get the file name and modified timestamp of the most recent 3 years from this huge directory for a migration project.
However, the ls command (background process) to list the file names and timestamp is running for... (2 Replies)
Discussion started by: subbu
2 Replies
2. UNIX for Beginners Questions & Answers
Hi all, posting my first time, hope not breaking posting rules with it, if yes, let me know.
I'm trying to build a script to check a file in an sftp server through a remote server.
The intention is to check the file in a sftp host, and if the file is found or not, it should send an email.... (4 Replies)
Discussion started by: MrShinyPants
4 Replies
3. UNIX for Beginners Questions & Answers
I know that I can use wild cards:ls ???????to list files 7 characters long, but how do i omit the .?! and spaces?
Please use CODE tags when displaying sample input, sample output, and code segments. (2 Replies)
Discussion started by: hiya54
2 Replies
4. UNIX for Dummies Questions & Answers
Hi guys
In this scenario, i have been able to transfer the file from a remote server to my local server, but how to delete the file from remote server once its copied. I am using this command
MYFILE=/tmp/MyFiLe.$$
echo rm FROM_DIR/K* >$MYFILE
then sftp -b $MYFILE
rm -f $MYFILE
and I have... (1 Reply)
Discussion started by: rubel
1 Replies
5. Shell Programming and Scripting
Hi,
We are using one unix script which is using sftp command and connect to remote server and get some file form remote server.
some time after running this script we are not getting any file .
Could you please tell us detailed validation that is there any problem with... (6 Replies)
Discussion started by: maheshkumar93@g
6 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I have a file at remote server. I have to select only current day's files that are dropped on ftp server. The files do not have date or timestamp on them.
so I plan to get the file listing from remote server to the local server. Based on file listing date I can find out when the files... (2 Replies)
Discussion started by: pavan_test
2 Replies
7. Shell Programming and Scripting
hi Everbody,
I had file names as shown
file_01_20101104.txt
file_01_20101105.txt
file_02_20101104.txt
file_01_20101205.txt
file_03_20101104.txt
file_02_20101105.txt
Now i want to list them based on the date in the file name as shown...
file_01_20101104.txt
file_02_20101104.txt... (3 Replies)
Discussion started by: Reddy482
3 Replies
8. Shell Programming and Scripting
Hello, I would appreciate if any one can help me on this.
The below script start running at 12:30AM. Every 5 min, i go and check the remote site. If i see filewatch.txt over there, then i need to call another shell script and load the data into database. If i don't see that file, then i have to... (2 Replies)
Discussion started by: govindts
2 Replies
9. Shell Programming and Scripting
Hi,
My requirement is to sftp a file from one server to another.After the file is completely transferrred, i should be able to create a text(dummy) file on the remote directory. How could this be accomplished. Any suggestions? (1 Reply)
Discussion started by: borncrazy
1 Replies
10. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies