Sponsored Content
Top Forums Shell Programming and Scripting List the file or files with last modification date Post 302360934 by KitFisto on Sunday 11th of October 2009 02:37:05 PM
Old 10-11-2009
Hi thanks for your response. But what it in this case:

-rw-r--r-- 13 09/23/09 15:52:38 ./aa/FileName
-rw-r--r-- 13 09/23/09 15:52:38 ./aa/dd/FileName
-rw-r--r-- 16 09/23/09 15:52:38 ./cc/cc/FileName
-rw-r--r-- 16 09/23/09 15:54:34 ./cc/FileName
-rw-r--r-- 13 09/23/09 15:54:03 ./aa/dd/FileName
-rw-r--r-- 6 09/23/09 15:54:23 ./bb/FileName

and I run your command it only shows me 2 lines when it is suppose to show 3 because the three first lines have the same modification date.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

command for modification date of a file

Good morning, I would like to find all files of a certain type and display their name as well as their modification date. In order to do this, I would do the following: find ./ -name *.csv | ???????? My question: what to put after the pipe instead of the question marks? Is there a basic... (5 Replies)
Discussion started by: scampsd
5 Replies

2. Shell Programming and Scripting

Copy files based on modification date

How to copy files from a location to a directory <YYMM> based on last modification date? This will need to run daily. I want to copy those file for May to 0905 and Jun to 0906. Appreciate your guidance.:) Thanks. -rw-rw-rw- 1 ttusr tgrp 4514 May 29 21:49 AB24279J.lot_a... (17 Replies)
Discussion started by: KhawHL
17 Replies

3. UNIX for Advanced & Expert Users

Help with sorting files according to modification date

Hi, I was very surprised to not be able to find an answer to this question despite my best efforts in Google and elsewhere. Maybe it's a good thing as it forced me to finally become a member in this great forum that i use frequently. Ok my question: I want to be able to sort files inside a... (3 Replies)
Discussion started by: stavros
3 Replies

4. Shell Programming and Scripting

Rename old files with last modification date

Hi everyone, I have files like file1_Mod.txt, file2_Mod.txt. I want to rename the old files with the last modification date. I write the below script to rename with current date, but I donīt know how to use "date -r" to get the last modification date with the same format I have below... (5 Replies)
Discussion started by: cgkmal
5 Replies

5. Shell Programming and Scripting

How to list the files based on the modification time using the find command?

Hi All, I need to list the files based modification time of the files from a directory, I cannot use "ls -t" as there are lot of files, which "ls" command cannot handle. New files will land there daily. So iam looking for an alternative through "find"command. All suggestions are welcomed. ... (6 Replies)
Discussion started by: Kesavan
6 Replies

6. Shell Programming and Scripting

Move files from one directory to another based on creation/modification date

Hi All, Really stuck up with a requirement where I need to move a file (Lets say date_Employee.txt--the date will have different date values like 20120612/20120613 etc) from one directory to another based on creation/modification dates. While visiting couple of posts, i could see we can... (3 Replies)
Discussion started by: dsfreddie
3 Replies

7. UNIX for Dummies Questions & Answers

How do you get the last modification date of a file?

I'm trying to get the date output to be in the form yyyy-mm-dd (e.g. 2013-01-18) !/bin/sh modDate=$(stat -c %y $1) echo $modDate >> $1 When I run this on another file (by typing ./dateScript theFile.txt), I keep getting this message: stat: illegal option -- c What's wrong with my code... (2 Replies)
Discussion started by: Nate18
2 Replies

8. Shell Programming and Scripting

How to list files that are not first two files date & last file date for every month-year?

Hi All, I need to find all files other than first two files dates & last file date for month and month/year wise list. lets say there are following files in directory Mar 19 2012 c.txt Mar 19 2012 cc.txt Mar 21 2012 d.txt Mar 22 2012 f.txt Mar 24 2012 h.txt Mar 25 2012 w.txt Feb 12... (2 Replies)
Discussion started by: Makarand Dodmis
2 Replies

9. Shell Programming and Scripting

Sort and move multiple files by modification date

Hi I have a problem, I have a large group of archive files in a folder some are later versions of the same archive, the only difference btween them is that the archiving program we use appends the name with a code for it to keep track of in its data base, and the modification date. I am starting... (6 Replies)
Discussion started by: Paul Walker
6 Replies

10. Shell Programming and Scripting

Subtract a file's modification date with current date

SunOS -s 5.10 Generic_147440-04 sun4u sparc SUNW,SPARC-Enterprise Hi, In a folder, there are files. I have a script which reads the current date and subtract the modification date of each file. How do I achieve this? Regards, Joe (2 Replies)
Discussion started by: roshanbi
2 Replies
cosTransactions(3erl)					     Erlang Module Definition					     cosTransactions(3erl)

NAME
cosTransactions - The main module of the cosTransactions application. DESCRIPTION
To get access to the record definitions for the structures use: -include_lib("cosTransactions/include/CosTransactions.hrl"). This module contains the functions for starting and stopping the application. If the application is started using application:start(cos- Transactions) the default configuration is used (see listing below). The Factory reference is stored using the CosNaming Service under the id "oe_cosTransactionsFac_IPNo" . The following application configuration parameters exist: * maxRetries - default is 40 times, i.e., if a transaction participant is unreachable the application will retry to contact it N times. Reaching the maximum is considered to be a disaster. * comFailWait - default is 5000 milliseconds, i.e., before the application retries to contact unreachable transaction participants the application wait Time milliseconds. EXPORTS
start() -> Return Types Return = ok | {error, Reason} This operation starts the cosTransactions application. stop() -> Return Types Return = ok | {error, Reason} This operation stops the cosTransactions application. start_factory() -> TransactionFactory Types TransactionFactory = #objref This operation creates a Transaction Factory . The Factory is used to create a new top-level transaction using default options (see listing below). start_factory(FacDef) -> TransactionFactory Types FacDef = [Options], see Option listing below. TransactionFactory = #objref This operation creates a Transaction Factory . The Factory is used to create a new top-level transaction. The FacDef list must be a list of {Item, Value} tuples, where the following values are allowed: * {hash_max, HashValue} - This value denotes the upper bound of the hash value the Coordinator uses. Default is 1013 . HashValue must be an integer. * {allow_subtr, Boolean} - If set to true it is possible to create subtransactions . Default is true . * {typecheck, Boolean} - If set to to true all transaction operation's arguments will be type-checked. Default is true . * {tty, Boolean} - Enables or disables error printouts to the tty. If Flag is false, all text that the error logger would have sent to the terminal is discarded. If Flag is true, error messages are sent to the terminal screen. * {logfile, FileName} - This function makes it possible to store all system information in FileName (string()). It can be used in combination with the tty(false) item in to have a silent system, where all system information are logged to a file. As default no logfile is used. * {maxRetries, Integer} - default is 40 times, i.e., if a transaction participant is unreachable the application will retry to contact it N times. Reaching the maximum is considered to be a disaster. This option overrides the application configuration parameter. * {comFailWait, Integer} - default is 5000 milliseconds, i.e., before the application retries to contact unreachable transaction participants the application wait Time milliseconds. This option overrides the application configuration parameter. stop_factory(TransactionFactory) -> Reply Types TransactionFactory = #objref Reply = ok | {'EXCEPTION', E} This operation stop the target transaction factory. Ericsson AB cosTransactions 1.2.10 cosTransactions(3erl)
All times are GMT -4. The time now is 07:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy