Sponsored Content
Top Forums Shell Programming and Scripting Script to copy creation date over top of modified date? Post 302970972 by toysareforboys on Thursday 14th of April 2016 08:03:29 AM
Old 04-14-2016
Server says: Debian GNU/Linux 8 (jessie)

It doesn't have istat installed and I don't have permission to to use apt-get Smilie

Any other way to read the creation date?

-Jamie M.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

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 (4 Replies)
Discussion started by: monkfan
4 Replies

2. UNIX for Dummies Questions & Answers

script to rename files with current date and copy it.

I have few webservers logs like access.log. which would be growing everyday. what i do everyday is, take the backup of access.log as access.log_(currentdate) and nullify the access.log. So thought of writing a script... but stuck up in middle. My requirement: to take the backup and nullify... (6 Replies)
Discussion started by: logic0
6 Replies

3. Shell Programming and Scripting

Script to copy log files with today's date

I am a newbie to scripting. I need a korn shell script to copy log files of current day to archive folder and rename with current days date stamp. I would really appreciate your help. File structure is as follows. Everyday files get overwritten, so I need copy to a archive directory and... (3 Replies)
Discussion started by: mdncan
3 Replies

4. Shell Programming and Scripting

mp3 tag/rename based on creation (last modified date)

Arg, I'm trying to figure out how to create a album tag based on the last modified date stamp for files which don't have a corresponding .talk file. IE. 2009 12 10 - Talk Radio.mp3 is how I want them structured, they should all have a corresponding .talk file so my mp3 player can speak the name ie... (0 Replies)
Discussion started by: mrplow
0 Replies

5. Shell Programming and Scripting

Help with script to copy/rename files, then delete by date

Hi All, I am new to scripting and am looking for some assistance setting up a script. Basically I need the script to scan a folder for the newest files and make a copy of those files, adding a month to the date stamp. I also need this script to delete the previously copied files to save space.... (4 Replies)
Discussion started by: Lucid13
4 Replies

6. UNIX for Dummies Questions & Answers

Script to copy files from a certain date

I need to copy files from a directory that has a lot of files in it. However I only want to copy them from a certain date. My thoughts so far are to use ls -l and to pipe this into awk and print out tokens 6 (month)and 7 (day). $ ls -l -rw-r--r-- 1 prodqual tst 681883 Jun 12... (2 Replies)
Discussion started by: millsy5
2 Replies

7. UNIX for Dummies Questions & Answers

Copy log based on from-date and to-date

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

8. UNIX for Beginners Questions & Answers

Copy files in order of creation date

Hi everyone :-) I ran into a small issue. I would like to copy some files in the precise order they were created. So the oldest files should be copied first and the newest ones last. I tried cp -r $(ls -1t) ./destination but the files are still not sorted properly. I was thinking, that... (11 Replies)
Discussion started by: officiallyme
11 Replies

9. Shell Programming and Scripting

Script to print file name and its creation date

Hello , I am looking for a script to print file name and its last updated time. FILE CREATION-TIME FILE-NAME 24/10/2017 12:34 TDR-IU-8-2017.10.24.07:40:00-2017.10.24.07:45:00 when we run l command it print the directory and the files with details like permission,... (1 Reply)
Discussion started by: sadique.manzar
1 Replies
UPGRADE-SYSTEM.CONF(5)						 Debian GNU/Linux					    UPGRADE-SYSTEM.CONF(5)

NAME
upgrade-system.conf - Configuration file for upgrade-system(8) DESCRIPTION
upgrade-system.conf is the configuration file for the upgrade-system(8) Debian administration utility. This file specifies command options used for calling apt-get(8) and deborphan(1) within upgrade-system(8). Lines starting with a hash mark ("#") and empty lines are ignored. EXAMPLE
The configuration file contains four variables: CLEANOPTS This variable selects which one of autoclean or clean to execute as the apt-get(8) cleaning command. For example: CLEANOPTS="clean" Consult the apt-get(8) manual page to check which options are available for any particular APT version, before setting this variable. UPGRADEOPTS This variable specifies which one of dist-upgrade or upgrade to execute as the apt-get(8) upgrade command and the command options. For example: UPGRADEOPTS="-f -u dist-upgrade" Consult the apt-get(8) manual page to check which options are available for any particular APT version, before setting this variable. ORPHANOPTS This variable specifies deborphan(1) command options. For example: ORPHANOPTS="--guess-all --libdevel --priority=2" One should read the deborphan(1) manual page to check which options are available for any particular version, before setting this variable. FLAUSCH Setting this variable enables various extremely pedantic purge options. This feature is totally experimental; usage is strongly discour- aged and should only be attempted by truly experienced Debian administrators. It can be used to sanitize a Debian system after a distribu- tion upgrade or to detect packages that don't conform to the Debian Policy. Setting the variable as a command line environment, only when needed, is considered a safer approach than adding it to upgrade-system.conf variables. SECURITY
Because upgrade-system is an APT front-end, all precautions relating to APT configuration should be observed. Special attention is required to: deborphan Certain combinations of deborphan(1) options purge a dangerous quantity of packages, potentially leaving a system in a severely crippled state. /etc/apt/preferences To prevent untested packages from overwriting stable ones, setting this combination of APT preferences is recommended: Package: * Pin: release a=stable Pin-Priority: 990 Package: * Pin: release a=testing Pin-Priority: 500 Package: * Pin: release a=unstable Pin-Priority: 100 Package: * Pin: release a=experimental Pin-Priority: 1 This enforces a priority to packages from Stable, yet still allows ones from Testing, Unstable or Experimental to get installed via appro- priate apt-get(8) options to override the default release. AUTHORS
Copyright (C) 2003-2004 Martin Zdrahal <martin.zdrahal@konflux.at> Copyright (C) 2004,2012 Christoph Schindler <hop@30hopsmax.at> Copyright (C) 2004-2012 Martin-Eric Racine <martin-eric.racine@iki.fi> LICENSE
GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>. SEE ALSO
apt-get(8), apt_preferences(5), deborphan(1), upgrade-system(8). http://q-funk.iki.fi 2004-03-31 UPGRADE-SYSTEM.CONF(5)
All times are GMT -4. The time now is 10:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy