You can use the $PWD (print working directory) to eliminate the variable $DIR
yes this is another way !! but actually my application runs find command only from /root path . for example if the properties files are in /var/tmp/test location still it will run the command from /root directory !!
that is why the above command wont work in my case as current directory is /root but i want to look for files in some other directory.
Hi All,
I am trying to select 30 days older files under current directory ,but not from subdirectory using below command.
find <Dir> -type f -mtime + 30
This command selecting all the files from current directory and also from sub directory .
I read some documention through internet ,... (1 Reply)
Hi Guys,
I am doing L1 Level support for Solaris Platform. Eg. User Management, File system , Print management and Job monitoring.
I recently completer my IBM Aix 7 Administration certification. Issue is that my manager is asking me do full time unix / linux patch management work for new... (5 Replies)
Hi,
I'm trying to do a search in a directory on AIX and I was wondering if there's an equivelant option to the -maxdepth option to tell how far down to search.
I ran this but I just want to make sure it's actually searching everything:
find ./* -type f -name "090817*" -exec ls -l {} \; (1 Reply)
Hi, I am using Solaris 5.8
I searched online, the find command has an option called maxdepth which can be used to limit the number of directories find will look into.
find . -maxdepth 2 -type f
When I run the above command in solaris, I get an error
find: bad option -maxdepth
find:... (2 Replies)
My greeting to all the readers
I have an AIX 5.3 version. I want to study this operation system. Unfortunately I don't have an IBM p Series system. Is there a way to install AIX on vmware or something similar? May be I have an old IBM Netfinity Server, will AIX run on this system? Thanks for... (5 Replies)
Hi All,
I want to know the OS level differences between AIX, Solaris, HP-UX, Linux
Apart from the vendor, H/w and command differences, any other significant points.
regards,
guru Charan (9 Replies)