10 More Discussions You Might Find Interesting
1. 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 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
i go a customer support requirement where i need to scan several files based on from/to date like 1-oct to 2-oct please help... (3 Replies)
Discussion started by: AbhiJ
3 Replies
3. Shell Programming and Scripting
Hi All
I need to get the date from a file.
my file a.out has the below data:
INFO : LM_36435 : (10153|1400211776)
Starting execution of workflow in folder
last saved by user .
The date here is Sun Jun 17 05:00:05 2013 ,which is the system date and keep on changing everyday.
So... (8 Replies)
Discussion started by: aliva Dash
8 Replies
4. Shell Programming and Scripting
Hi,
I would greatly appreciate it if someone can help me with my problem.
I have a crawler which collects spam URLs everyday & this data needs to be published in a blacklist.
Here's the catch:
The "Time To Live" (TTL) for each URL is 3 months (or whatever for that matter). If i see the... (5 Replies)
Discussion started by: r4v3n
5 Replies
5. Shell Programming and Scripting
Hi, im taking an entry Unix class, and as part of my lab assignment I have to copy all files in the /home/david/lab3 directory that have the file extension .save to your lab3/temp directory. I'm having trouble getting the grep to do anything worth while
I've been trying to do:
cp... (6 Replies)
Discussion started by: Critical jeff
6 Replies
6. Shell Programming and Scripting
Hi all
i am having so many files in my directory.Is there any option
to copy files based on date.
example
i am having file this
-rw-rw-r-- 1 ram user 1 Feb 2 17:12 abc
-rw-rw-r-- 1 ram user 1 Feb 2 17:12 bnw
-rwxrwxr-x 1 ram user 21122 Feb 4... (3 Replies)
Discussion started by: suryanarayana
3 Replies
7. Shell Programming and Scripting
Hi,
I have a log file without date/time, and I want that everytime tail|grep find something it displays the date/time and the line. I have tried something like this command but without any luck to display the date/time:
tail -F catalina.out | sed "s/^/`date `/" | egrep ... (6 Replies)
Discussion started by: julugu
6 Replies
8. UNIX for Dummies Questions & Answers
Hi I want to copy a file but append the date and time....how?
So copying the file file1.txt will have file1_20061009_0950.txt
I know the command :
date +"%Y%m%d_%H%M"
but how do i get this in the file name ?
cp file1.txt newDirectory/file1_?????????.txt
Thanx (2 Replies)
Discussion started by: chris_ie
2 Replies
9. Shell Programming and Scripting
Hi,
I want to copy a some files according to the date.
lets say i want to copy file from june1st to june14th.
What is the command for that ?
Thanks,
Nayanajith. (1 Reply)
Discussion started by: Nayanajith
1 Replies
10. HP-UX
Hi,
I have a coupel of files in /tmp which I have to copy to /var. But I want their name to be same as the source with date suffix.
But the problem is I don;t know the prefix of the file, I only know the suffix of file.
AAA.997
ABC.997
ADC.997
The later part 997 is constant but the... (1 Reply)
Discussion started by: isingh786
1 Replies