TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Linux & Opensource > Unix

problem in using "find" command in HPUX 11

Unix


Reply
 
LinkBack Thread Tools Display Modes
Old 15-09-2007, 11:50 AM   #11
ashu
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.

  Reply With Quote
Old 15-09-2007, 11:51 AM   #12
ashu
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.

  Reply With Quote
Old 15-09-2007, 11:51 AM   #13
ashu
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.

  Reply With Quote
Old 15-09-2007, 11:51 AM   #14
Bill Marcum
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.
  Reply With Quote
Old 15-09-2007, 11:51 AM   #15
Michael Tosch
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
  Reply With Quote
Old 15-09-2007, 11:51 AM   #16
Michael Tosch
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
  Reply With Quote
Old 15-09-2007, 11:52 AM   #17
kipps
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

  Reply With Quote
Reply

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?

All times are GMT +5.5. The time now is 03:54 PM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional