Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Changing Creation Date to a Prespecified Date of a File In Unix Post 302097687 by monkfan on Tuesday 28th of November 2006 02:58:10 AM
Old 11-28-2006
Changing Creation Date to a Prespecified Date of a File In Unix

Dear Expert,

Is there a command to do that in Unix?
In such a way that we don't need to actually "write" or
modified the content.

-- monkfan
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Listing the creation date/time of a file in unix

Hi, I need the unix command which returns only the file name and its creation date/time in unix. I tried ls -l <filename>. But that is giving other details also which I do not want. Could anyone help me out? Thanks. (6 Replies)
Discussion started by: unipepper
6 Replies

2. UNIX for Dummies Questions & Answers

changing the format of date in unix

When i execute the below command it is giving the timestamp in the format mentioned below ls -ltr 1234.txt | awk 'BEGIN {FS=" "} {print $6" "$7" "$8}' Mar 20 00:12 i want output in the format 200803200012 please help me how to do it here year is not returned and i have to convert mar to... (5 Replies)
Discussion started by: trichyselva
5 Replies

3. Shell Programming and Scripting

How to get File creation date.

Hi All, I need to get file creation date. I have to access one file who's name is like... abc.log092308 and the date changes as per current date. And i am accessing this file next day. meance in above case i will access above file on 09-24-2008 Also one problem is that this file... (2 Replies)
Discussion started by: Jeevan Salunke
2 Replies

4. Shell Programming and Scripting

how to find creation date of file

Hi, I just need to know way of getting date of file when it was created. eg i have a file abc created on 23 aug. Now i need to know date of file i.e. 23 aug. How can i get that data. Thanks Sarbjit (7 Replies)
Discussion started by: sarbjit
7 Replies

5. Shell Programming and Scripting

finding creation date of a file

Hi, Can anyone tell me a process to find the creation date of a file in a directory. If suppose I have a file in a directory created in 2009 -rw-r--r-- 1 xyz guest 2480 Jul 16 2009 sample.txt The command should return the the file creation date as 16/07/2009 thanks, (2 Replies)
Discussion started by: swathich
2 Replies

6. UNIX for Dummies Questions & Answers

Date stopped changing on Unix server

Hi, I don't have a lot of info, so I'm sure this is a long shot. But figured I'd check to see if this issue rings a bell with anyone. Two weeks ago a Unix server stopped updating the date. So everyday it shows the same system time. It's been manually changed to the correct date, but then... (2 Replies)
Discussion started by: no_clue
2 Replies

7. Shell Programming and Scripting

changing date to resemble "messages file" date

the following was taken from a perl script: my $date = strftime "%B %d %H:%M:%S", localtime; how can i modify it so this date outputs the date in the form of the date of the messages file. for example: Sep 20 11:48:44 As it is right now, the perl script outputs the date like this: ... (1 Reply)
Discussion started by: SkySmart
1 Replies

8. Shell Programming and Scripting

Script to copy creation date over top of modified date?

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

9. UNIX for Beginners Questions & Answers

Changing CSV files with date . Subtracting date by values

Hi All, I have a CSV file which is as below. Basically I need to take the year column in it and find if the year is >= 20152 . If that is then I should subtract all values by 6. In the below example in description I am having number mentioned as YYWW so I need to subtract those by -5. Whereever... (8 Replies)
Discussion started by: arunkumar_mca
8 Replies

10. Shell Programming and Scripting

Sftp file creation date and time

Hi Team, How to get the file creation date and time in SFTP server we can able to type ls -ltr command only SFTP server. Generally we type ls --full-time test.txt we will get the date and time , same way how to do in SFTP server after connected. Thanks (1 Reply)
Discussion started by: bmk123
1 Replies
vxse(1M)																  vxse(1M)

NAME
vxse - Storage Expert rules SYNOPSIS
/opt/VRTS/vxse/vxvm/vxse_rule [-g diskgroup] [-d defaults_file] [-v] check /opt/VRTS/vxse/vxvm/vxse_rule [-g diskgroup] [-d defaults_file] [-v] info /opt/VRTS/vxse/vxvm/vxse_rule [-g diskgroup] [-d defaults_file] [-v] list /opt/VRTS/vxse/vxvm/vxse_rule [-g diskgroup] [-d defaults_file] [-v] run [attribute=value...] DESCRIPTION
Storage Expert consists of a set of simple commands that collects VxVM configuration data and compares it with "best practice." Storage Expert then produces a summary report that shows which objects do not meet these criteria and makes recommendations for VxVM configuration improvements. These user-configurable tools help you as an administrator to verify and validate systems and non-optimal configurations in both small and large VxVM installations. Storage Expert components include a set of rule scripts and a rules engine. The rules engine runs the scripts and produces ASCII output, which is organized and archived by Storage Expert's report generator. This output contains information about areas of VxVM configuration that do not meet the set criteria. By default, output is sent to the screen, but you can redirect it to a file using standard UNIX redi- rection. KEYWORDS
check Lists the default values used by a rule's attributes. info Describes what a rule does. list Lists the attributes of a rule that can be set. run Runs a rule. If one or more attribute-value pairs are specified, these override the values set in the defaults file. OPTIONS
-d defaults_file Specifies an alternate default attribute-values file to the standard file, /etc/default/vxse. -g diskgroup Specifies the disk group to be examined instead of the default disk group (see vxdg(1M)). -v Specifies verbose output format. EXAMPLES
Note: The executable rule files are located in the directory, /opt/VRTS/vxse/vxvm. These examples assume that this directory has been added to the PATH variable. Discover what the vxse_stripes2 rule does: vxse_stripes2 info Display the attributes that are available for the vxse_drl1 rule: vxse_drl1 list Display the default values of the attributes for the vxse_stripes2 rule: vxse_stripes2 check Run the vxse_volplex rule on the mydg disk group: vxse_volplex -g mydg run Run the vxse_drl2 rule on the mydg disk group with the value of the large_mirror_size attribute set to 30MB: vxse_drl2 -g mydg run large_mirror_size=30m Run the vxse_srl2 rule using the default attribute values that are set in the file mydefaultsfile: vxse_drl2 -d mydefaultsfile -g mydg run FILES
/etc/default/vxse Standard attribute values file for vxse rules. /opt/VRTS/vxse/vxvm Directory containing executable rules. NOTES
See the "Using Veritas Storage Expert" chapter in the Veritas Volume Manager Administrator's Guide for a description of the rules and their attributes. SEE ALSO
vxdg(1M), vxintro(1M) Veritas Volume Manager Administrator's Guide VxVM 5.0.31.1 24 Mar 2008 vxse(1M)
All times are GMT -4. The time now is 08:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy