![]() |
![]() |
|
|||||||
| Register | Forum Rules | Getting Started! - Guide | Blog | Videos | Gallery | Members List | Social Groups | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#11 |
|
Guest
Posts: n/a
|
Re: problem in using "find" command in HPUX 11
Ed Morton wrote: > star wrote: > > Hi, > > > > I need to find the files which were modified five minutes beofre in > > a particular directory. > > I tried using the command "find . -mmin -5 " but i got the error > > "find: bad option -mmin". > > My machine runs on HPUX 11i. > > Is there an alternative way for finding the files which were created > > 5 minutes ago. > > Looking forward for your valuable inputs. > > Thanking you in advance. > > > > Thanks > > Shan > > > > Create a file using "touch" with a timestamp of 5 minutes ago then use > find -newer. > > Ed. find -newer is not working for me.... i get following error message. Usage: find path-list [predicate-list]. please let me know, how do i go about it. |
|
|
|
#12 |
|
Guest
Posts: n/a
|
Re: problem in using "find" command in HPUX 11
Ed Morton wrote: > star wrote: > > Hi, > > > > I need to find the files which were modified five minutes beofre in > > a particular directory. > > I tried using the command "find . -mmin -5 " but i got the error > > "find: bad option -mmin". > > My machine runs on HPUX 11i. > > Is there an alternative way for finding the files which were created > > 5 minutes ago. > > Looking forward for your valuable inputs. > > Thanking you in advance. > > > > Thanks > > Shan > > > > Create a file using "touch" with a timestamp of 5 minutes ago then use > find -newer. > > Ed. find -newer is not working for me.... i get following error message. Usage: find path-list [predicate-list]. please let me know, how do i go about it. |
|
|
|
#13 |
|
Guest
Posts: n/a
|
Re: problem in using "find" command in HPUX 11
Ed Morton wrote: > star wrote: > > Hi, > > > > I need to find the files which were modified five minutes beofre in > > a particular directory. > > I tried using the command "find . -mmin -5 " but i got the error > > "find: bad option -mmin". > > My machine runs on HPUX 11i. > > Is there an alternative way for finding the files which were created > > 5 minutes ago. > > Looking forward for your valuable inputs. > > Thanking you in advance. > > > > Thanks > > Shan > > > > Create a file using "touch" with a timestamp of 5 minutes ago then use > find -newer. > > Ed. find -newer is not working for me.... i get following error message. Usage: find path-list [predicate-list]. please let me know, how do i go about it. |
|
|
|
#14 |
|
Guest
Posts: n/a
|
Re: problem in using "find" command in HPUX 11
On Thu, 26 Jul 2007 22:23:00 -0700, ashu
<ashu.magadum@gmail.com> wrote: > > find -newer is not working for me.... > > i get following error message. > > Usage: find path-list [predicate-list]. > > please let me know, how do i go about it. > find . -newer -- Household hint: If you are out of cream for your coffee, mayonnaise makes a dandy substitute. |
|
|
|
#15 |
|
Guest
Posts: n/a
|
Re: problem in using "find" command in HPUX 11
ashu wrote:
> Ed Morton wrote: >> star wrote: >>> Hi, >>> >>> I need to find the files which were modified five minutes beofre in >>> a particular directory. >>> I tried using the command "find . -mmin -5 " but i got the error >>> "find: bad option -mmin". >>> My machine runs on HPUX 11i. >>> Is there an alternative way for finding the files which were created >>> 5 minutes ago. >>> Looking forward for your valuable inputs. >>> Thanking you in advance. >>> >>> Thanks >>> Shan >>> >> Create a file using "touch" with a timestamp of 5 minutes ago then use >> find -newer. >> >> Ed. > > find -newer is not working for me.... > > i get following error message. > > Usage: find path-list [predicate-list]. > > please let me know, how do i go about it. > touch .findcmp sleep 300 find . -newer .findcmp If you do not want to wait that long: touch -t ` perl -e '@t=localtime(time-300); printf "%02s%02s%02s%02s%02s.%02s",$t[5]%100,$t[4],$t[3],$t[2],$t[1],$t[0]' ` .findcmp find . -newer .findcmp -- Michael Tosch @ hp : com |
|
|
|
#16 |
|
Guest
Posts: n/a
|
Re: problem in using "find" command in HPUX 11
Michael Tosch wrote:
> ashu wrote: >> Ed Morton wrote: >>> star wrote: >>>> Hi, >>>> >>>> I need to find the files which were modified five minutes beofre in >>>> a particular directory. >>>> I tried using the command "find . -mmin -5 " but i got the error >>>> "find: bad option -mmin". >>>> My machine runs on HPUX 11i. >>>> Is there an alternative way for finding the files which were created >>>> 5 minutes ago. >>>> Looking forward for your valuable inputs. >>>> Thanking you in advance. >>>> >>>> Thanks >>>> Shan >>>> >>> Create a file using "touch" with a timestamp of 5 minutes ago then use >>> find -newer. >>> >>> Ed. >> >> find -newer is not working for me.... >> >> i get following error message. >> >> Usage: find path-list [predicate-list]. >> >> please let me know, how do i go about it. >> > > touch .findcmp > sleep 300 > find . -newer .findcmp > > If you do not want to wait that long: > > touch -t ` > perl -e '@t=localtime(time-300); > printf "%02s%02s%02s%02s%02s.%02s",$t[5]%100,$t[4],$t[3],$t[2],$t[1],$t[0]' > ` .findcmp > find . -newer .findcmp > The following seems easier: touch .findcmp perl -e '$t=time-300; utime $t,$t,".findcmp"' find . -newer .findcmp -- Michael Tosch @ hp : com |
|
|
|
#17 |
|
Guest
Posts: n/a
|
Re: problem in using "find" command in HPUX 11
On Jul 28, 9:04 am, Michael Tosch <eed...@NO.eed.SPAM.ericsson.PLS.se>
wrote: > ashu wrote: > > Ed Morton wrote: > >> star wrote: > >>> Hi, > > >>> I need to find the files which were modified five minutes beofre in > >>> a particular directory. > >>> I tried using the command "find . -mmin -5 " but i got the error > >>> "find: bad option -mmin". > >>> My machine runs on HPUX 11i. > >>> Is there an alternative way for finding the files which were created > >>> 5 minutes ago. > >>> Looking forward for your valuable inputs. > >>> Thanking you in advance. > > >>> Thanks > >>> Shan > > >> Create a file using "touch" with a timestamp of 5 minutes ago then use > >> find -newer. > > >> Ed. > > > find -newer is not working for me.... > > > i get following error message. > > > Usage: find path-list [predicate-list]. > > > please let me know, how do i go about it. > > touch .findcmp > sleep 300 > find . -newer .findcmp > > If you do not want to wait that long: > > touch -t ` > perl -e '@t=localtime(time-300); > printf "%02s%02s%02s%02s%02s.%02s",$t[5]%100,$t[4],$t[3],$t[2],$t[1],$t[0]' > ` .findcmp > find . -newer .findcmp > > -- > Michael Tosch @ hp : com- Hide quoted text - > > - Show quoted text - How do I set filec [file continuation] in HP unix korn shell env?? and alias to cd? Thnx |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem in using "find" command in HPUX 11 | star | Unix | 14 | 15-09-2007 11:47 AM |
| RE: How do I take command over a user as an administrator. Etc. "sudo" | it-support | Windows Server 2003 | 2 | 28-08-2007 08:10 AM |
| RE: ipconfig command returns a "Media Disconnected .." message | Rajesh Dudala | Windows XP | 2 | 28-08-2007 01:07 AM |
| Vista Problem - "Could not find this item" error on viewable folde | Dipak | Windows Vista All | 2 | 18-08-2007 04:22 PM |
| can't find the "search" and "run" comands in the start menu | bruce | Windows XP | 4 | 16-08-2007 10:47 AM |
< Home - Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |