![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compare date from db2 table to yesterday's Unix system date | sasaliasim | Shell Programming and Scripting | 9 | 3 Days Ago 08:37 PM |
| Perl: Extracting date from file name and comparing with current date | MKNENI | Shell Programming and Scripting | 4 | 03-26-2008 01:01 PM |
| date issue-find prevoius date in a patricular format | bsandeep_80 | UNIX for Advanced & Expert Users | 3 | 11-15-2007 05:42 PM |
| Changing Creation Date to a Prespecified Date of a File In Unix | monkfan | UNIX for Dummies Questions & Answers | 4 | 11-28-2006 04:15 AM |
| Specify a previous date as start date in shell script | ritzwan0 | Shell Programming and Scripting | 2 | 09-25-2006 02:58 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
a fiel name with date
Hi,
I want to create a file which will have a name like myfile ending with date and time. I did : touch myfile%date or touch myfile%date% But does not work. How to do that ? Many thanks before. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
Code:
touch "myfile$(date)" |
|
#3
|
|||
|
|||
|
Ok, thank you. but the format is not good. I have :
myfile_Mon Jul 30 09:49:03 CEST 2007 how can I have only : myfile_30_jul Thanks again. |
|
#4
|
||||
|
||||
|
Read the man pages of date.
|
|
#5
|
|||
|
|||
|
touch "myfile_$(date +%d_%b)"
|
|
#6
|
|||
|
|||
|
many thanks.
|
|
#7
|
|||
|
|||
|
Need Help
Hi guy`s
I dont know how to start a threat yet. but anyway here goes my question? I have this job that i perform monthly manualy I have to clear out files about 80000 files a month This is what i currently use manualy(which takes time) find . -name '*.200707*' > 07files #Create tar archive tar cvf arch_spool_nokia_200707.tar -I 07files #Delete files added to tar acrhive: cat 07files | xargs rm can anyone help me speed up this process or give me some more advice on using Unix as I`m a Newbie |
|||
| Google The UNIX and Linux Forums |