12-09-2008
thanks! works like a charm. for i in 'find ...' is so commonly seen as an example, it seems I should always use the while statement in future.
by the way, "man read", "man while" didn't give me manual of "read", though intuitively it is quite understandable, I would like to see the manual for learning. please give me a reference. thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I've got a small script that deletes all the trash from mailusers Trash directory. I run this script once in a while to make some space. (We have lots of IMAP users, who keep their mail on server!) Occansionaly, the users create directories with space in the name (e.g. "My Mail"). And sometimes... (5 Replies)
Discussion started by: nitin
5 Replies
2. Shell Programming and Scripting
sed -n '/\{10\}E/p' $filename | sort >> $filename.sorted
Could somebody please give me a breakdown of what exactly each part of this sed statement does, I have inherited a production script, and know that basically it sorts a file that looks like this
(20 spaces here) ... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
3. AIX
Hi,
Stats:
AIX 5.3, P590 series. 8 CPUs, 27GB RAM. DB SGA 4GB
MAXCLIENT=MAXPERM% = 20% (MIN IS 10%)
lru_file_repage =1
strict value for maxperm and for maxclient both set to 1.
File system=jfs2.
paging = 1% all the time (means no paging)
Consider the following at point in time:
From... (1 Reply)
Discussion started by: shahidsa
1 Replies
4. UNIX for Dummies Questions & Answers
How to find the free space & usage of the particular directory in Hp-Unix?
I want to see the usage in % (2 Replies)
Discussion started by: bobprabhu
2 Replies
5. Shell Programming and Scripting
Hi Guys,
I want to find the free space of a particular directory,,
Regards,
Magesh (3 Replies)
Discussion started by: mac4rfree
3 Replies
6. Solaris
Hello,
I am trying to breakdown the cXtXdX (specifically tX) part of an iscsi device.
I know in the fibre SAN world, this tX will usually be a combination of the path to device/device WWN.
From what I understand in iscsi world it is similar, breaking down into... (0 Replies)
Discussion started by: Bashful
0 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am using Red Hat linux system. I see my /work directory has used space 300GB. But there are so many sub directory under /work. I want to list each direcotry and under all subdirectory. But i want to know how much space occupied by each directory. What kind of command i can use to... (3 Replies)
Discussion started by: govindts
3 Replies
8. UNIX for Dummies Questions & Answers
I have a script like this running under OS X 10.8. The problem arises when the find command encounters a space in the path name. I need the "dir" variable as I'll be extending the script to more general use.
#!/bin/bash
CFS=$IFS
IFS=$(echo)
set dir = "/Users/apta/Library/Mail\... (3 Replies)
Discussion started by: apta
3 Replies
9. Shell Programming and Scripting
I only want to find files under each branch of the directory tree inside directories named XYZ and there are multiple XYZ directories? (7 Replies)
Discussion started by: emc^24sho
7 Replies
10. UNIX for Beginners Questions & Answers
How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on:
$ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print
it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
MAN(1) General Commands Manual MAN(1)
NAME
man, lookman - print or find pages of this manual
SYNOPSIS
man [ option ... ] [ section ... ] title ...
lookman key ...
DESCRIPTION
Man locates and prints pages of this manual named title in the specified sections. Title is given in lower case. Each section is a num-
ber; pages marked (2S), for example, belong to chapter 2. If no section is specified, pages in all sections are printed. Any name from
the NAME section at the top of the page will serve as a title.
The options are:
-p Run proof(1) on the specified man pages.
-t Run troff and send its output to standard output.
-n (Default) Print the pages on the standard output using nroff.
Lookman prints the names of all manual sections that contain all of the key words given on the command line.
FILES
/sys/man/?/*
troff source for manual; this page is /sys/man/1/man
/sys/man/?/INDEX
indices searched to find pages corresponding to titles
/sys/lib/man/secindex
command to make an index for a given section
/sys/lib/man/lookman/index
index for lookman
SOURCE
/rc/bin/man
/rc/bin/lookman
SEE ALSO
proof(1)
BUGS
The manual was intended to be typeset; some detail is sacrificed on text terminals.
There is no automatic mechanism to keep the indices up to date.
Except for special cases, it doesn't recognize things that should be run through tbl and/or eqn.
MAN(1)