04-24-2008
Quote:
Originally Posted by
vgersh99
find /path/to/starting/directory -type f > outputfile
You have to specify some action for "find". Many modern "find"s (including the AIX v5.3 i'm working on) imply "-print" if nothing else is specified, but that is only silently tolerating faulty input. All of the following lines would work regardless of the "find" in question being a "classical" (unassuming) or a "modern" one:
find /path/to/starting/directory -print > outputfile
find /path/to/starting/directory -ls > outputfile
find /path/to/starting/directory -exec ls -l {} \; > outputfile
etc.
bakunin
8 More Discussions You Might Find Interesting
1. Programming
what is WDFP and WE STATION? (1 Reply)
Discussion started by: billybayou
1 Replies
2. UNIX for Dummies Questions & Answers
Is there any way to use sed and count the number of alphabetic characters in a sentence? (4 Replies)
Discussion started by: brentdeback
4 Replies
3. AIX
What AIX version I need to run a software in a R6000 model 6015/6020 in a IBM P5??? Im implementing a Hot SIte. Is this possible or I need identical systems hardware and software? (1 Reply)
Discussion started by: IBravo
1 Replies
4. UNIX for Dummies Questions & Answers
I noticed that I have a print job that is hung up (lpstat -o) due to a broken printer. Is there a way to re-route the printed information into a text file? Or does it exist somewhere in UNIX as a text file? (5 Replies)
Discussion started by: danceofillusion
5 Replies
5. HP-UX
Hello,
yeah... here my question :
Exist some way to force umount on HP other than reboot?
Thanks
gb (12 Replies)
Discussion started by: gogol_bordello
12 Replies
6. UNIX for Advanced & Expert Users
I have a CentOS release 5.2 (Final)host running kernel 2.6.18-92.el5 with at raid 10 that had two mirrored drives fail. The drives were re-inserted and now the raid shows healthy (for now). I tried to mount but got an Input/output error. I then attempted a fsck:
fsck.gfs2 -y /dev/vg_01/uss_vol... (0 Replies)
Discussion started by: king_hippo
0 Replies
7. Shell Programming and Scripting
I am new to unix. how to get only the no. of lines output from the wc -l command.
Input:
wc -l filename
it gives
<no.of lines> filename
i need only the interger value.
as
<no.of lines>
Thanks in advance (2 Replies)
Discussion started by: sanvel
2 Replies
8. Solaris
hi team,
I'm a new with Solaris system and i'm a french, so my english will not be very good but I'll try to explain my problem.
I have a Sun server SunFire X4170 with Solaris 10 as OS.
since last week I am not able to access on /vol1 anymore. And bellow are the warning messages which are... (20 Replies)
Discussion started by: cerco
20 Replies
PAWD(1) BSD General Commands Manual PAWD(1)
NAME
pawd -- print automounter working directory
SYNOPSIS
pawd [path ...]
DESCRIPTION
The pawd utility is used to print the current working directory, adjusted to reflect proper paths that can be reused to go through the auto-
mounter for the shortest possible path. In particular, the path printed back does not include any of amd(8)'s local mount points. Using
them is unsafe, because amd(8) may unmount managed file systems from the mount points, and thus including them in paths may not always find
the files within.
Without any arguments, pawd will print the automounter adjusted current working directory. With any number of arguments, it will print the
adjusted path of each one of the arguments.
SEE ALSO
pwd(1), amd(8), amq(8)
``am-utils'' info(1) entry.
Erez Zadok, Linux NFS and Automounter Administration, Sybex, 2001, ISBN 0-7821-2739-8.
http://www.am-utils.org/
Amd - The 4.4 BSD Automounter.
HISTORY
The pawd utility first appeared in FreeBSD 3.0.
AUTHORS
Erez Zadok <ezk@cs.sunysb.edu>, Computer Science Department, Stony Brook University, Stony Brook, New York, USA.
Other authors and contributors to am-utils are listed in the AUTHORS file distributed with am-utils.
BSD
January 2, 2006 BSD