10 More Discussions You Might Find Interesting
I'm using a script that I need to get a file's "last modified date" in a format like 01:51:14 PM. We are running on AIX 126.96.36.199. I can't seem to find the right command parameters. Help! (4 Replies)
Discussion started by: mattadams1983
2. Shell Programming and Scripting
Can someone draw up a script that for every file, folder and subfolder and files that will copy the creation date over top of the modified date??
I know how to touch every file recursively, but no idea how to read a files creation date then use that to touch the modification date of that file,... (3 Replies)
Discussion started by: toysareforboys
3. Shell Programming and Scripting
I have a directory that has numerous files in it, and there is two which are named "filerec_ddmmyyHH24MMSS" by the time they are created so "filerec_010615012250" was created at 01:22:50 on 1st June 2015.
I need to find the most recently created of those 2 files and get the contents of... (4 Replies)
Discussion started by: finn
4. Shell Programming and Scripting
In my directory , i have many days file but i want to see all those which are of todays date.
i tried this but it gives all the files
mtime -0 |ls -ltr
I tried the below option as well.
19635 find -iname "*.LOG" -mtime
19636 ls -ltr *.LOG -mtime -1
19637 ls -ltr *.LOG... (7 Replies)
Discussion started by: guddu_12
5. Shell Programming and Scripting
Im trying to find a way to test whether the last modified time is older than 1 day or not
if ; then
$TOUCHED = "recently"
$TOUCHED = "not so recently"
ive seen loads of posts where people are using find and the -mtime property but i... (2 Replies)
Discussion started by: rethink
6. UNIX for Advanced & Expert Users
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.
James (2 Replies)
Discussion started by: JamesJoe
7. Shell Programming and Scripting
I am trying to write a Korne Shell asking the user for a date and a directory and then search recursively in this directory the list of files modified after the date chosen. But I am not getting good results when I Test it...
echo "Enter a date (YYYYMMDD) "
touch -t... (2 Replies)
Discussion started by: marconi
8. 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
9. Shell Programming and Scripting
If I have a flat file
How can I create an output
1|SFO|02/24/2006 12:12:34|hawkeye|35|M... (6 Replies)
Discussion started by: sabercats
10. UNIX for Dummies Questions & Answers
I am trying to load a group of files and their last dates modified into a text file that will in turn be used with SQL*Loader to load these files into Oracle. I am using a *.ksh script. I am getting the name of the file in by using the following:
for file_ext in 'cat loaddir.ext';
find... (2 Replies)
Discussion started by: akpopa