using find to go directly into a directory location


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting using find to go directly into a directory location
# 1  
Old 04-04-2012
using find to go directly into a directory location

is there any other useful command to go into a specific directory and not go into its subdirectories that operates similar to find.? (it will return the full pathname?) or is there any way to make find not go into the subdirectories of the specified directory? This is on ksh as well.
# 2  
Old 04-04-2012
use maxdepth find . -maxdepth +1
# 3  
Old 04-04-2012
maxdepth isnt working for some reason. any other solutions?
# 4  
Old 04-04-2012
my bad please try with find . -maxdepth 1
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Searching the value of a specific attribute among xmls files from a particular directory location

Hi Folks , I have the different xml files at the following directory `/opt/app/rty/servers/tr/current/ops/config` Let's say there are three files named abc.xml bv.xml ert.xml Now inside these xml there can be many tags as like shown below <bean id="sdrt"... (6 Replies)
Discussion started by: unclesamm
6 Replies

2. Red Hat

Find cpu location

Hi guys we have come corrected errors and i would like to know where is cpu 23 located physicaly... :( here the lscpu output (2 socket, 6 cores intel cpu): # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): ... (1 Reply)
Discussion started by: beta17
1 Replies

3. UNIX for Dummies Questions & Answers

Find the location of particular file and directory

hi all, i am new to UNIX environment. i have a file and directory with same name, i don't know the location I want to find location of that file and directory. please suggest a solution. (5 Replies)
Discussion started by: mahesh1987
5 Replies

4. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

5. Red Hat

Find Computer Location

Hi, there, How to know location of a computer where its IP Address and Computer name is known? tx (5 Replies)
Discussion started by: budiantho_indra
5 Replies

6. Red Hat

Get up one directory of location as variable

May i know how can i pass up one of a location to a variable in script file with command in stead of hardcode? saying in my script file: maindir = "/opt/xSystem/config" upOneDir = ????? echo $upOneDir I have to use command to pass "/opt/xSystem" to variable upOneDir. Please... (5 Replies)
Discussion started by: cielle
5 Replies

7. Shell Programming and Scripting

How to find the job and its location

Guys; I first I thank you for helping me few times in the past; A job runs every day at 8AM and looks for a file “abcd.txt” in directory “/usr/task/tmp”. How to find the job and its location. I need to change the file name to “abcd.dat”. it is UNIX environment. (2 Replies)
Discussion started by: clem2610
2 Replies

8. UNIX for Dummies Questions & Answers

write a directory location

Hi, Just want to be sure that if I write a directory like: /documents/script.pl is the same as to write: /documents//script.pl Thanks in advance (1 Reply)
Discussion started by: fadista
1 Replies

9. UNIX for Dummies Questions & Answers

Copy directory from one location to other

Hi All, I am newbie for Unix. I want to copy a directory from one location to other. Can any one help me by providing the command to do following task. thanks in advance, Rakesh (2 Replies)
Discussion started by: rakeshvthu
2 Replies

10. Shell Programming and Scripting

Home Directory Location Code

Hello All, I am a teacher at a local high school, and we have put together a small computer and loaded a linux distro onto it for the students to experiment with, because 20 children share the computer, it is hard to keep track of there home directorys, i was wondering if i could find a script... (10 Replies)
Discussion started by: hks_turbokits
10 Replies
Login or Register to Ask a Question