Sponsored Content
Full Discussion: Find empty folders
Top Forums Shell Programming and Scripting Find empty folders Post 302369513 by vidyadhar85 on Monday 9th of November 2009 12:00:25 AM
Old 11-09-2009
do you have "-empty" option in find??
just lokk into man page of find..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

zip nesting empty folders

I'm using the following command to zip a project file, but when it finishes, the resulting zip file contains all the directories above the file I wanted zipped, myapp.app, each one empty until you get to the actual app. zip -r myapp.app.zip ... (0 Replies)
Discussion started by: groundlevel
0 Replies

2. UNIX for Advanced & Expert Users

find only folders

is there an option in find command to search only for folders (not subfolders). thx (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

3. UNIX for Dummies Questions & Answers

how to find empty folders without using -empty

hi all: my solaris FIND does not support find myFolder -type d -empty how can i find the empty folders? thanks! (7 Replies)
Discussion started by: lasse
7 Replies

4. UNIX for Dummies Questions & Answers

Removing empty folders using the "find" command

Hi I'm trying to remove empty sub-folders from 1 main folder using the find method, but the "- empty" parameter isn't recognized by my Unix version. Any idea how to implement such thing? Thanks. (3 Replies)
Discussion started by: biot
3 Replies

5. UNIX for Dummies Questions & Answers

Removing empty folders using 'find'

Hey there! I try to use 'find' to remove empty directories like this: find . -depth -type d -empty -exec rm -rf {} ';' It works just fine, but there are some directories i want to exclude. So i tried to do sth like this: find . -depth -type d -empty -exec grep -v "not this one please" -exec... (5 Replies)
Discussion started by: deTTo
5 Replies

6. UNIX for Dummies Questions & Answers

Removing empty folders

Hello, I have a folder that contains all my music. Recently, I started using a different media player, and I let it manage my music folder. It has sorted all my music neatly in folders by artist and album. However, all the old folders that the songs used to be in are still there, yet they are... (2 Replies)
Discussion started by: emveedee
2 Replies

7. UNIX for Dummies Questions & Answers

find/xargs/*grep: find multi-line empty "try-catch" blocks - eg, missing ; not in a commented block

How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases? This would seem to involve find, xargs, *grep, regex, etc. In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
Discussion started by: lifechamp
0 Replies

8. Shell Programming and Scripting

Deleting empty folders

Hey, I need help with writing a shell script that deletes empty folders..anyone? :) Thank you! (5 Replies)
Discussion started by: putukas
5 Replies

9. Windows & DOS: Issues & Discussions

Empty folders with SFU

Hi all, i am currently setting my windows XP environment to use with Services for Unix (NFS Client) to mount my unix file system as a network drive. However, though i could mount the unix file directory successful, but the folder is empty (which is not). Why is this so? i have imported my unix... (6 Replies)
Discussion started by: lchunleo
6 Replies

10. UNIX for Dummies Questions & Answers

How to delete some empty folders?

I have an amount of folders and I want to delete only the empty ones. But I have more than 200 empty folders, so I would preffer do not delete one by one... I know it is possible, but I don't know how. I've tried with the size, using 'du' command, and saving the result in a file. After that, I made... (3 Replies)
Discussion started by: saitsug
3 Replies
QSqlRecordInfo(3qt)													       QSqlRecordInfo(3qt)

NAME
QSqlRecordInfo - Encapsulates a set of database field meta data SYNOPSIS
#include <qsqlrecord.h> Public Members QSqlRecordInfo () QSqlRecordInfo ( const QSqlFieldInfoList & other ) QSqlRecordInfo ( const QSqlRecord & other ) size_type contains ( const QString & fieldName ) const QSqlFieldInfo find ( const QString & fieldName ) const QSqlRecord toRecord () const DESCRIPTION
The QSqlRecordInfo class encapsulates a set of database field meta data. This class is a QValueList that holds a set of database field meta data. Use contains() to see if a given field name exists in the record, and use find() to get a QSqlFieldInfo record for a named field. See also QValueList, QSqlFieldInfo, and Database Classes. MEMBER FUNCTION DOCUMENTATION
QSqlRecordInfo::QSqlRecordInfo () Constructs an empty record info object QSqlRecordInfo::QSqlRecordInfo ( const QSqlFieldInfoList & other ) Constructs a copy of other. QSqlRecordInfo::QSqlRecordInfo ( const QSqlRecord & other ) Constructs a QSqlRecordInfo object based on the fields in the QSqlRecord other. size_type QSqlRecordInfo::contains ( const QString & fieldName ) const Returns the number of times a field called fieldName occurs in the record. Returns 0 if no field by that name could be found. QSqlFieldInfo QSqlRecordInfo::find ( const QString & fieldName ) const Returns a QSqlFieldInfo object for the first field in the record which has the field name fieldName. If no matching field is found then an empty QSqlFieldInfo object is returned. QSqlRecord QSqlRecordInfo::toRecord () const Returns an empty QSqlRecord based on the field information in this QSqlRecordInfo. SEE ALSO
http://doc.trolltech.com/qsqlrecordinfo.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qsqlrecordinfo.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QSqlRecordInfo(3qt)
All times are GMT -4. The time now is 03:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy