Sponsored Content
Operating Systems Solaris Any alternative of find . -mmin 20 Post 302216719 by Prat007 on Monday 21st of July 2008 03:28:36 AM
Old 07-21-2008
Any alternative of find . -mmin 20

hi

find command is not working with -mmin in Solaris Os.

Do we hav any alternative to find the modified file in any specified time span ( suppose in last 1- 2 hours)

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

no [find -mmin -1]

I wanna show all files like...one minute old, one hour old, five hours old and so on... in my OS (HP-UX) there's only the command .. find -name "..." -mtime -n but this is only for days, there isn't something like -mmin -n ...just don't know what to do. also the newer than option isn't... (3 Replies)
Discussion started by: svennie
3 Replies

2. HP-UX

find command using -mmin param

Hi Everyone, I would like to know how to find a file which was created in the period of 20+ hours, in most common unix OS, the parameter -mmin is not supported (i.e, HP-UX, Solaris, LInux, AIX) Could you help on this ?? (3 Replies)
Discussion started by: jmbeltran
3 Replies

3. Shell Programming and Scripting

unix find command without mmin option

I need to check if a file has been modified within the last x hours. My find command does not have the mmin option -- only the mtime option which is in 24 hour perriods (1 Reply)
Discussion started by: Bill Ma
1 Replies

4. Shell Programming and Scripting

Help with find –mmin in a .ksh script

I need to compare the time a file was last modified against current time and conditionally proceed. At the command prompt I can do: find MYFILE -mmin +1140 and it lists the file. But I need to test, and if true do something I’ve tried things like: if ; then if ; then etc. ... (2 Replies)
Discussion started by: tlavoie
2 Replies

5. Shell Programming and Scripting

-$arg not working for find mmin

Hi, I want to parameterise the argument for 'mmin' to find out files created/edited 'n' minutes ago. For this i have written something as simple as the following: n=10 m=-1 c=expr $n \* $m #value comes to -10 when echoed find -mmin -10 #works find -mmin $c #doesnt work ... (5 Replies)
Discussion started by: SheetalN
5 Replies

6. Shell Programming and Scripting

Find mmin, mtime, cmin not working

Dear All, We are having the script which is creating the folder on another server if it is not present using ssh. Using scp it copies copy all pdf files from local folder to server folder. After all copy is done, Just to verify i was using the below find command find... (3 Replies)
Discussion started by: yadavricky
3 Replies

7. Shell Programming and Scripting

Getting file Details with find -mmin

I'm new to this and I have done a lot of research and am 99% done with my ksh script BUT I need help with. The script looks at Journal files and reports back on any that have not been updated for 15 min. Everything works but I wanted more detail (added -ls) and now I'm getting dups. Original code:... (2 Replies)
Discussion started by: blackopz
2 Replies

8. UNIX for Dummies Questions & Answers

Find command mmin

Hi, Please tell me what the below command wil do, according to my understanding it finds files in the current and sub directories whose modification time is 5 hrs and it dont zip the already zipped files who's size is more than 4K. Am I Correct? find . -type f -mmin +300 ! -name... (1 Reply)
Discussion started by: nag_sathi
1 Replies

9. UNIX for Beginners Questions & Answers

Any alternative for mmin or cmin parameter

Hi, I need to write a shell script where I need to check whether log file is generated in last 1 hour or not. But I am getting below error in using mmin or cmin parameter with find command: find: bad option -mmin find: bad option -cmin So my concern is that any alternative for mmin option... (5 Replies)
Discussion started by: Ankit Srivastav
5 Replies

10. UNIX for Beginners Questions & Answers

Don't have tree, need advise to differentiate dir from file from this alternative that uses find

Hi, I don't have tree on the Solaris server and our SA don't want to install it. I found this example from One Line Linux Command to Print Out Directory Tree Listing | systemBash that more or less does what I am mainly looking for. Example run is as below: $: find ./ | sed -e... (2 Replies)
Discussion started by: newbie_01
2 Replies
struct::disjointset(n)						Tcl Data Structures					    struct::disjointset(n)

__________________________________________________________________________________________________________________________________________________

NAME
struct::disjointset - Disjoint set data structure SYNOPSIS
package require Tcl 8.4 package require struct::disjointset ?1.0? ::struct::disjointset disjointsetName disjointsetName option ?arg arg ...? disjointsetName add-partition elements disjointsetName partitions disjointsetName num-partitions disjointsetName equal a b disjointsetName merge a b disjointsetName find e disjointsetName destroy _________________________________________________________________ DESCRIPTION
This package provides disjoint sets. An alternative name for this kind of structure is merge-find. Normally when dealing with sets and their elements the question is "Is this element E contained in this set S?", with both E and S known. Here the question is "Which of several sets contains the element E?". I.e. while the element is known, the set is not, and we wish to find it quickly. It is not quite the inverse of the original question, but close. Another operation which is often wanted is that of quickly merging two sets into one, with the result still fast for finding elements. Hence the alternative term merge-find for this. Why now is this named a disjoint-set ? Because another way of describing the whole situation is that we have o a finite set S, containing o a number of elements E, split into o a set of partitions P. The latter term applies, because the intersection of each pair P, P' of partitions is empty, with the union of all partitions covering the whole set. o An alternative name for the partitions would be equvalence classes, and all elements in the same class are considered as equal. Here is a pictorial representation of the concepts listed above: +-----------------+ The outer lines are the boundaries of the set S. | / | The inner regions delineated by the skewed lines | * / * | are the partitions P. The *'s denote the elements | * / | E in the set, each in a single partition, their |* / | equivalence class. | / * | | / * / | | * / * / | | / / | | / / * | | / * | | / * | +-----------------+ For more information see http://en.wikipedia.org/wiki/Disjoint_set_data_structure. API
The package exports a single command, ::struct::disjointset. All functionality provided here can be reached through a subcommand of this command. ::struct::disjointset disjointsetName Creates a new disjoint set object with an associated global Tcl command whose name is disjointsetName. This command may be used to invoke various operations on the disjointset. It has the following general form: disjointsetName option ?arg arg ...? The option and the args determine the exact behavior of the command. The following commands are possible for disjointset objects: disjointsetName add-partition elements Creates a new partition in specified disjoint set, and fills it with the values found in the set of elements. The command maintains the integrity of the disjoint set, i.e. it verifies that none of the elements are already part of the disjoint set and throws an error otherwise. The result of the command is the empty string. disjointsetName partitions Returns the set of partitions the named disjoint set currently consists of. disjointsetName num-partitions Returns the number of partitions the named disjoint set currently consists of. disjointsetName equal a b Determines if the two elements a and b of the disjoint set belong to the same partition. The result of the method is a boolean value, True if the two elements are contained in the same partition, and False otherwise. An error will be thrown if either a or b are not elements of the disjoint set. disjointsetName merge a b Determines the partitions the elements a and b are contained in and merges them into a single partition. If the two elements were already contained in the same partition nothing will change. The result of the method is the empty string. disjointsetName find e Returns the partition of the disjoint set which contains the element e. disjointsetName destroy Destroys the disjoint set object and all associated memory. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category struct :: disjointset of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
disjoint set, equivalence class, find, merge find, partition, partitioned set, union CATEGORY
Data structures struct 1.0 struct::disjointset(n)
All times are GMT -4. The time now is 12:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy