04-09-2012
how to change modified time of a file
A files last modified time is like 03/02/2012 xx:xx:xx
So what would be the command to convert the last modified in the given signature
Thanks for giving time and replying..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
How do you change the modified time of a file on UNIX?? (4 Replies)
Discussion started by: frank
4 Replies
2. UNIX for Dummies Questions & Answers
Made changes to a file using vi editor and saved those changes
now realised that the changes are not required
How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have some log files created in the following fashion
Ex:
file name modified date
1) s.log1 01-jan-08
2) s.log2 02-jan-08
3) s.log3 03-jan-08
4) s.log4 04-jan-08
Now I want to have the latest 2 logs and delete the others.
Can you tell me the one liner /... (1 Reply)
Discussion started by: ammu
1 Replies
4. Shell Programming and Scripting
Hi All,
I want to extract last modified, seen in ls -l command, of a file and then convert it into "YYYYMMDD" format.
Any help regarding would be helpful
Thanks in advance... (3 Replies)
Discussion started by: itsme_maverick
3 Replies
5. Shell Programming and Scripting
Hi,
I'm new to shell script programming, I only have Java programming background.
I'm writing a shell script to do file synchronization between 2 machines that located at different time zone area. Both machine were set its time zone according to its geographical location (Eg: server is at... (1 Reply)
Discussion started by: python
1 Replies
6. Shell Programming and Scripting
Hi,
I have modified one file today. So if i give `ls -lrt filename` command it will show the current modified time.
But i wanted to know what is the previous modified time for this file
Is there any way to find this
Thanks,
Puni (3 Replies)
Discussion started by: puni
3 Replies
7. Shell Programming and Scripting
Hi.,
Last modified time of the folder is changing when I view the file inside the directory. Here is the test on sample directory. I believe that ls -l commands gives the time detail w.r.t last modified time. Pl. suggest.
bash-3.2$ mkdir test
bash-3.2$ cd test
bash-3.2$ touch myfile.txt... (2 Replies)
Discussion started by: IND123
2 Replies
8. UNIX for Advanced & Expert Users
Hi,
I am new bie to Unix. Might be a simple question I am asking.
I want to find the last modified time of a file and find the difference between the currrent time and the last modified time. Appreciate, if someone can throw some light on what commands can be used.
Cheers,
James (2 Replies)
Discussion started by: JamesJoe
2 Replies
9. Shell Programming and Scripting
i have a requirement where i needed to change variable values in a properties file(first file) whenever there is change to Release details file(second file). My question is do i have to create a daemon process that always checks the modified time/inode change of the second file and then change the... (1 Reply)
Discussion started by: saikiran_1984
1 Replies
10. Shell Programming and Scripting
Hi,
I need to run a script file which uses a file and that file is modified as and when some alarms generated, it is not based on any fixed time period.. it may be modified even once in a minute for some time and once in 30 min or once in 20 min. Hence i need to watch for the timestamp change of... (3 Replies)
Discussion started by: aemunathan
3 Replies
LEARN ABOUT HPUX
fdatasync
fsync(2) System Calls Manual fsync(2)
NAME
fsync, fdatasync - synchronize a file's in-core and on-disk states
SYNOPSIS
DESCRIPTION
and cause all modified data and attributes of fildes to be moved to a permanent storage device. This normally results in all in-core modi-
fied copies of buffers for the associated file to be written to a disk. and apply to ordinary files, and apply to block special devices on
systems which permit I/O to block special devices.
and should be used by programs that require a file to be in a known state, such as when building a simple transaction facility.
causes all modified data and file attributes of fildes required to retrieve the data to be written to disk.
causes all modified data and all file attributes of fildes (including access time, modification time and status change time) to be written
to disk.
Together, and constitute support for File Synchronization.
RETURN VALUE
and return 0 on success or -1 if an error occurs, and set to indicate the error.
ERRORS
fsync and fdatasync fail if any of the following conditions are encountered:
[EBADF] fildes is not a valid descriptor.
[EINVAL] fildes refers to a file type to which or does not apply.
WARNINGS
The current implementation of these functions is inefficient for large files.
AUTHOR
was developed by the University of California, Berkeley and HP.
SEE ALSO
fcntl(2), fcntl(5), open(2), select(2), sync(2), sync(1M), unistd(5).
STANDARDS CONFORMANCE
fsync(2)