niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » shell
How to find a newly created directory using any unix command
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Bill Marcum
*nix forums Guru


Joined: 28 Mar 2005
Posts: 1264

PostPosted: Fri Feb 11, 2005 3:38 pm    Post subject: Re: How to find a newly created directory using any unix command Reply with quote

On 11 Feb 2005 04:15:39 -0800, rajashekar14@yahoo.com
<rajashekar14@yahoo.com> wrote:
Quote:

Bill Marcum wrote:
On 11 Feb 2005 01:04:17 -0800, rajashekar14@yahoo.com
rajashekar14@yahoo.com> wrote:
Hi,

How to find a newly created directory/file using any unix command.

find . -mmin -1
ls -lt | head -1

That is I wanted to have the directory name stored in my vairable.
Thanks


Hi Bill,

I am getting follwing error after execution of "find . -mmin -1"
find: bad option -mmin

My fault, I should have said that -mmin only works with some versions of

find (GNU and maybe BSD). If it works, it should show files less than
one minute old.
Back to top
rajashekar14@yahoo.com
*nix forums beginner


Joined: 02 Feb 2005
Posts: 14

PostPosted: Fri Feb 11, 2005 11:15 am    Post subject: Re: How to find a newly created directory using any unix command Reply with quote

Bill Marcum wrote:
Quote:
On 11 Feb 2005 01:04:17 -0800, rajashekar14@yahoo.com
rajashekar14@yahoo.com> wrote:
Hi,

How to find a newly created directory/file using any unix command.

find . -mmin -1
ls -lt | head -1

That is I wanted to have the directory name stored in my vairable.
Thanks


Hi Bill,

I am getting follwing error after execution of "find . -mmin -1"
find: bad option -mmin
Back to top
Bill Marcum
*nix forums Guru


Joined: 28 Mar 2005
Posts: 1264

PostPosted: Fri Feb 11, 2005 10:17 am    Post subject: Re: How to find a newly created directory using any unix command Reply with quote

On 11 Feb 2005 01:04:17 -0800, rajashekar14@yahoo.com
<rajashekar14@yahoo.com> wrote:
Quote:
Hi,

How to find a newly created directory/file using any unix command.

find . -mmin -1

ls -lt | head -1

Quote:
That is I wanted to have the directory name stored in my vairable.
Thanks
Back to top
rajashekar14@yahoo.com
*nix forums beginner


Joined: 02 Feb 2005
Posts: 14

PostPosted: Fri Feb 11, 2005 8:04 am    Post subject: How to find a newly created directory using any unix command Reply with quote

Hi,

How to find a newly created directory/file using any unix command.

That is I wanted to have the directory name stored in my vairable.
Thanks
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 1:06 am | All times are GMT
navigation Forum index » Programming » shell
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts postfix - mail directory bandito Postfix 0 Tue Dec 09, 2008 11:13 pm
No new posts Solaris dd command problem prak Solaris 0 Fri Jul 21, 2006 5:43 am
No new posts Solaris dd command problem prak Solaris 0 Fri Jul 21, 2006 5:43 am
No new posts Solaris dd command problem prak Solaris 4 Fri Jul 21, 2006 5:43 am
No new posts change default install directory when using bdist_rpm krithika.sridhar@gmail.co python 1 Fri Jul 21, 2006 4:09 am

Bankruptcy | Myspace Proxy | Bankruptcy | Problem Mortgage | MPAA
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.6721s ][ Queries: 20 (0.4914s) ][ GZIP on - Debug on ]