05-13-2010
Hi Scott,
Sorry I misunderstood in the initial stage.. Now i am clear with and this command is very useful to me...
Thanks for you help!!!
10 More Discussions You Might Find Interesting
1. Solaris
How can I use the 'ps' command to view current sessions but only for a given process/user, with the -u parm?
In older versions of Unix, this used to work, but not in Sun Solaris.
Thanks (4 Replies)
Discussion started by: ElCaito
4 Replies
2. Shell Programming and Scripting
is there a direct command to find whether directory is empty, -s option doesn't seem to work.
Mark. (2 Replies)
Discussion started by: markjason
2 Replies
3. UNIX for Advanced & Expert Users
There r 2 servers. Lets call them S1 and S2..
S1 is OSF1 and S2 is SunOS..
One directory of S2 is mounted on S1. say abc/xyz
There is one application which continuously put xml files in that directory (on S2).
If we give command “ls -lrt” on S2 it gives proper output.. (i.e. gives list... (1 Reply)
Discussion started by: asmita
1 Replies
4. UNIX for Dummies Questions & Answers
Hi , Kindly help me out .:)
i want to find only the file t4 in directory t3. i am in dir t . the tree is as follows.
if i give,
find .
o/p is
.
./t4
./t1
./t1/t2
./t1/t2/t3
./t1/t2/t3/t4
./t1/t2/t4
./t1/t4
directories are like t/t1/t2/t3 and each directory has file t4.
my... (7 Replies)
Discussion started by: bhuvaneshlal
7 Replies
5. Shell Programming and Scripting
Hi
I have a directory say mydir and inside it there are many files and subdirectories and also a directory called lost+found owned by root user
I want to print all files directories and subdirectorres from my directory using find command except lost+found
If i do
find . \( -name... (3 Replies)
Discussion started by: xiamin
3 Replies
6. HP-UX
Running HP 11.31 on a HP3600. But when I log in as a user the who command works but if I use an option like "who -m" I get nothing. Any thoughts on what is causing this problem. (11 Replies)
Discussion started by: KMRWHUNTER
11 Replies
7. Shell Programming and Scripting
Hi All,
Could you please help me in searching files in a better way satisfying the below conditions
I want to search files in a path whose access time is more than 5min and less than 60 min and whose Byte size is greater than zero
For this, i am using the below command, but it is... (2 Replies)
Discussion started by: sparks
2 Replies
8. Shell Programming and Scripting
Hi,
I am a little bit confusing of using find command.
Actually, I am planning to delete the files whatever the files are existing in the day before yesterday. So, I am writing the command like this.
find . -name "*.txt" -ctime -2 { here I am confusing, if I will use +2 or +1 also I am... (5 Replies)
Discussion started by: nagraju.allam
5 Replies
9. Shell Programming and Scripting
Hi All,
on a Linux server I use this command to compress ONLY the files of yesterday
PATH=/home/user01/logs
TYPE="*"
DAYS=1
find $PATH -daystart -mtime $DAYS -type f -name "$TYPE" -exec gzip -f '{}' ';'
On SunOS the -daystart option is not allowed
A different test is the following on SunOS... (4 Replies)
Discussion started by: gio123bgg
4 Replies
10. Shell Programming and Scripting
Can you please figure out what is the issue here
$ find . -maxdepth 1 -type f -size 0 -print
find: bad option -maxdepth
please find the OS details
$ uname -a
HP-UX g5u1216 B.11.31 U ia64 2614088426 unlimited-user license
Use code tags, thanks. (6 Replies)
Discussion started by: TomG
6 Replies