want to know when file was moved


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting want to know when file was moved
# 1  
Old 11-13-2003
Error want to know when file was moved

hi some body has moved my file "x " into some other directory
now i am having problem as to when that file was moved remember its not copy its move so time and date stamp remains same .is there any way i can know when that file was moved
i need that date time is not a problem

thanks in advance
# 2  
Old 11-13-2003
Provided that you have not changed mode
Code:
ls -lc x

# 3  
Old 11-13-2003
still more problem

ok some of the files have been renamed also
i know the new name i mean which all files have been renamed can i get the date when they were moved even if i know when they were renamed i will have some rough idea
i want the dates badly cause want to know which all scripts ran on that day .
so that i can take the data for that file and run the script manually again .cause of moving the data of the moved files is not in fed to the script on the designated day
thanks again
# 4  
Old 11-14-2003
thanks

issue is resolved thanks
copied files had the datestamp when they were copied
and the files that were not copied but moved
we can know the date of movement by
ls -lc

thanks ygor
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Move file from one directory and update the list file once moved.

Dears, I have a listfile contains list of files path. i need to read the line of the listfile mv the file to other directory and update the listfile by deleting the lines of the listfile. #!/bin/bash target=/fstest/INVESTIG/Sadiq/TEST_ARCH while read -r line || ]; do mv $line... (19 Replies)
Discussion started by: sadique.manzar
19 Replies

2. Shell Programming and Scripting

How to create a log file that simply shows the name of a file and what directory it was moved to.

Newbie...Thank you for your help. I am creating my first script that simply generates subdirectories to organize video, music, and text files within those subdirectories from my current working directory. PROBLEM: I am trying to write a log file that contains, for each file, the original file... (0 Replies)
Discussion started by: BartleDoo
0 Replies

3. Linux

Possible Cause of Files Not Being Moved?

Hi ULF, Good day! I'm working on a LINUX Suse server and I have an entry in CRON which looks like this below: 0 5 * * * /usr/bin/find /opt/nsfw/var/partition-all/ -name "RCV_SASN*" -exec mv '{}' /opt/nsfw/var/rcv-archive/ \; This tool runs everyday at 5am and it will just move the files... (7 Replies)
Discussion started by: rymnd_12345
7 Replies

4. Shell Programming and Scripting

What moved my file?

Hello all; I have a dilemma; I have a script that runs for several clients; the script is quite simply invoked as: <scriptname> xxx (where xxx is the client 3-digit identifier) My script is to move the file into a "sent" folder when it's processes...it works for all but one client. In... (4 Replies)
Discussion started by: gvolpini
4 Replies

5. Shell Programming and Scripting

List moved files in text file

Hi. I am actually doing all of this on OSX, but using unix apps and script. I have built my own transparent rsync/open directory/mobility/etc set of scripts for the firm I work at, and it is all almost complete except for ONE THING. I have the classic problem with rsync where if a user... (0 Replies)
Discussion started by: Ashtefere
0 Replies
Login or Register to Ask a Question