Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Remove only Empty Directories Post 302363566 by kedar.mehta on Tuesday 20th of October 2009 03:36:58 PM
Old 10-20-2009
Curiousity

Hi Pludi,

Apologize for the bumping up the post with double question. Blame my curiosity for that!! Appreciate your efforts to keep the forum systematic.

I will continue eagrly waiting for the resoponse at the same time controlling myself not to bump it back.. Smilie

Thanks,
Kedar
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

scanning empty directories

Hi, I want to produce a text file representing a list of empty directories on a unix system starting from a specified directory. I hope I explained well my problem. Thanks in advance. (7 Replies)
Discussion started by: N065956BM
7 Replies

2. UNIX for Dummies Questions & Answers

Help identifying empty directories

Is there a way you can identify directories that are empty? I do not need to remove them, I just need to identify them below a cetain path. I have tried the following already and it returned everything for some reason. #!/bin/sh && set -- . find "$@" -type d -depth -print > dir.txt |... (2 Replies)
Discussion started by: dboard
2 Replies

3. UNIX for Dummies Questions & Answers

Empty directories having different size

$ls -lrt mydir total 12 drwxrwxrwx 2 nobody nobody 512 Aug 8 11:51 tmp drwxrwxrwx 2 nobody nobody 4608 Jan 19 12:20 web.cache $ ls -lrt mydir/web.cache/ total 0 $ ls -lrt mydir/tmp/ total 0 Can anyone explain me the above results? I know the o/p of ls, but this... (3 Replies)
Discussion started by: rahulrathod
3 Replies

4. Shell Programming and Scripting

identify the empty directories

Hi Wrote the below script to identify the empty directories ,when executing the below showing that directory is not empty but the directories are empty.Please help to identify the empty directories 33 is not empty 33 is not empty 33 is not empty 33 is not empty for file in `find .... (5 Replies)
Discussion started by: mohan705
5 Replies

5. Shell Programming and Scripting

Listing non empty directories

Hi Gurus, How to list directories that are non-empty and non-hidden Thanks in advance (2 Replies)
Discussion started by: kinny
2 Replies

6. Shell Programming and Scripting

Deleting empty directories using find

Hello, I'm submitting this thread, because I was looking a way to delete empty directories using find and I found a thread from 2007 that helped me. I have worked from that threat, but I found that the command sent would analyze original directory and may delete it to. I have come up with expanded... (3 Replies)
Discussion started by: lramirev
3 Replies

7. Shell Programming and Scripting

How to exclude the empty directories

Hi., I have a script, in which I am processing a files present in the directory types. ls -lrt | grep ^d | grep Dir_type | awk -f '{print $9}' |\ while read dir_name; do #operations done where Dir_type is the pattern in which directories get created. How to filter out empty... (2 Replies)
Discussion started by: IND123
2 Replies

8. UNIX for Advanced & Expert Users

How to Remove 180 days older non-empty directories

Hi Gurus, I have command to delete more than 180days file. find /home/abc/ -name "CBST_*.txt*" -mtime +180 | xargs -n 100 rm -f Now I would like to delete more than 180days Non empty directory--What will be command? Following is non empty directory as instance CBST2010* (2 Replies)
Discussion started by: thepurple
2 Replies

9. UNIX for Advanced & Expert Users

Delete empty directories recursively - HP-UX

Hi, I want to delete all empty directories in a long directore tree structure. I want to use that from a script that will run on HP-UX 11. My definition of empty directory is that there is no regular file under it and directly beneath it. To elaborate, I have below directories. /app/dev/java... (14 Replies)
Discussion started by: asutoshch
14 Replies

10. UNIX for Beginners Questions & Answers

Empty Directories

Please help me. How i can find empty directories in solaris?? (4 Replies)
Discussion started by: FoDeGe
4 Replies
libc_db(3LIB)							Interface Libraries						     libc_db(3LIB)

NAME
libc_db - threads debugging library SYNOPSIS
cc [ flag ... ] file ... -lc_db [ library ... ] #include <proc_service.h> #include <thread_db.h> DESCRIPTION
The libc_db library provides support for monitoring and manipulating threads-related aspects of a multithreaded program. There are at least two processes involved, the controlling process and one or more target processes. The controlling process is the libc_db client, which links with libc_db and uses libc_db to inspect or modify threads-related aspects of one or more target processes. The target processes must be multithreaded processes that use libc. The controlling process mignt or might not be multithreaded itself. The most commonly anticipated use for libc_db is that the controlling process will be a debugger for a multithreaded program, hence the "db" in libc_db. The libc_db library is dependent on the internal implementation details of libc. It is a "friend" of libc in the C++ sense, which is pre- cisely the "value added" by libc_db. It encapsulates the knowledge of libc internals that a debugger needs to manipulate the threads- related state of a target process. To be able to inspect and manipulate target processes, libc_db makes use of certain process control primitives that must be provided by the process using libc_db. The imported interfaces are defined in proc_service(3PROC). In other words, the controlling process is linked with libc_db and calls routines in libc_db. In turn, libc_db calls certain routines that it expects the controlling process to provide. These process control primitives allow libc_db to: o Look up symbols in a target process. o Stop and continue individual lightweight processes ( LWPs) within a target process. o Stop and continue an entire target process. o Read and write memory and registers in a target process. Initially, a controlling process obtains a handle for a target process. Through that handle it can then obtain handles for the component objects of the target process, its threads, its synchronization objects, and its thread-specific-data keys. When libc_db needs to return sets of handles to the controlling process, for example, when returning handles for all the threads in a tar- get process, it uses an iterator function. An iterator function calls back a client-specified function once for each handle to be returned, passing one handle back on each call to the callback function. The calling function also passes another parameter to the iterator func- tion, which the iterator function passes on to the callback function. This makes it easy to build a linked list of thread handles for a particular target process. The additional parameter is the head of the linked list, and the callback function simply inserts the current handle into the linked list. Callback functions are expected to return an integer. Iteration terminates early if a callback function returns a non-zero value. Other- wise, iteration terminates when there are no more handles to pass back. INTERFACES
The shared object libc_db.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces. td_init td_log td_sync_get_info td_sync_get_stats td_sync_setstate td_sync_waiters td_ta_clear_event td_ta_delete td_ta_enable_stats td_ta_event_addr td_ta_event_getmsg td_ta_get_nthreads td_ta_get_ph td_ta_get_stats td_ta_map_addr2sync td_ta_map_id2thr td_ta_map_lwp2thr td_ta_new td_ta_reset_stats td_ta_set_event td_ta_setconcurrency td_ta_sync_iter td_ta_sync_tracking_enable td_ta_thr_iter td_ta_tsd_iter td_thr_clear_event td_thr_dbresume td_thr_dbsuspend td_thr_event_enable td_thr_event_getmsg td_thr_get_info td_thr_getfpregs td_thr_getgregs td_thr_getxregs td_thr_getxregsize td_thr_lockowner td_thr_set_event td_thr_setfpregs td_thr_setgregs td_thr_setprio td_thr_setsigpending td_thr_setxregs td_thr_sigsetmask td_thr_sleepinfo td_thr_tsd td_thr_validate FILES
/lib/libc_db.so.1 shared object /lib/64/libc_db.so.1 64-bit shared object ATTRIBUTES
See attributes(5) for description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsl (32-bit) | +-----------------------------+-----------------------------+ | |SUNWcslx (64-bit) | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
intro(3), td_ta_new(3C_DB), attributes(5), threads(5) SunOS 5.10 24 Mar 2004 libc_db(3LIB)
All times are GMT -4. The time now is 03:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy