Sponsored Content
Top Forums Shell Programming and Scripting Find Directories That Do Not Contain A Certain File Post 302425608 by verdepollo on Friday 28th of May 2010 03:21:20 PM
Old 05-28-2010
Code:
find . -type d | while read line; do if [ ! -f $line/folder.jpg ]; then echo $line; fi; done; >> no_album_art

 

10 More Discussions You Might Find Interesting

1. Programming

to find a file in set of directories

Hi, what is the command in unix to find a file abc.c in a directory which had n number of sub-directories. thanx (3 Replies)
Discussion started by: jazz
3 Replies

2. Shell Programming and Scripting

Find a file in sub-directories.. o/p just the path

Hello All, I am somehow stumped with this ting. 'Find' will sure show me.. but I want only thepath of all the occurences of the file in any of the sub-dirs.. Any help will be sincerely appreciated. thanx! (3 Replies)
Discussion started by: pranavagarwal
3 Replies

3. Shell Programming and Scripting

find directories

I am looking a script which will find garbase directories (10 char. long)..which need to delete empty dir excluding symlink and system directories. I tried this partial script but it just find directories create a file which contains link directories..can somebody help me to complete this... (4 Replies)
Discussion started by: ddk2oo5
4 Replies

4. UNIX for Dummies Questions & Answers

Copy file into directories and sub-directories

Hello- I need to copy a file into multiple directories, and each directory's sub-directories (of which there are 5) Currently, the parent directory is set up like this: dir1 sub-dir1 sub-dir2 sub-dir3 sub-dir4 sub-dir5 dir2 sub-dir1 sub-dir2 sub-dir3 ... (1 Reply)
Discussion started by: penlok
1 Replies

5. Shell Programming and Scripting

find directories that do NOT contain a certain file extension

for x in `find /vmfs/volumes/v01tstn01a01/ -type d`; do find $x -name '*.vmx' > /dev/null || echo $x; done; The goal of this is to find the subdirectories that do NOT contain a file with the extension of .vmx Any help would be great! (6 Replies)
Discussion started by: hodnov
6 Replies

6. Shell Programming and Scripting

How to find the recent file in many sub-directories?

Hi guys, Under my root directory there are many sub-directories which contains log file for every day of running. How can I find , in one command only, the recent log file in each sub-directory? For example, If I run the following: find . -name "exp_prod_*_*_yes_*_.log" -exec ls -ltr {} \;... (12 Replies)
Discussion started by: nir_s
12 Replies

7. Shell Programming and Scripting

How to find 777 permisson is there or not for Directories and sub-directories

Hi All, I am Oracle Apps Tech guy, I have a requirement to find 777 permission is there or not for all Folders and Sub-folders Under APPL_TOP (Folder/directory) with below conditions i) the directory names should start with xx..... (like xxau,xxcfi,xxcca...etc) and exclude the directory... (11 Replies)
Discussion started by: gagan4599
11 Replies

8. UNIX for Dummies Questions & Answers

Using grep command to find the pattern of text in all directories and sub-directories.

Hi all, Using grep command, i want to find the pattern of text in all directories and sub-directories. e.g: if i want to search for a pattern named "parmeter", i used the command grep -i "param" ../* is this correct? (1 Reply)
Discussion started by: vinothrajan55
1 Replies

9. UNIX for Dummies Questions & Answers

Getting directories resulted from Find in one file

Hi Need help for the following scenario. I am having two directories /tmp/a and /tmp/b. /tmp/a again has subdirectories /tmp/a/aa and /tmp/a/ab. I want to run a script from /tmp/b to search for a file user.lst in the folders /tmp/a/aa and /tmp/a/ab, if available, i want to make a file in... (3 Replies)
Discussion started by: sudeep.id
3 Replies

10. UNIX for Dummies Questions & Answers

[Solved] Find the newest file in two directories

Hi i have two directories and files inside them Directory 1: Directory 2: These files are the same but song.mp3 in Directory 1 is newer than song.mp3 in Directory 2, and work.txt in Directory 2 is newer than work.txt in Directory 1. Now is my question. How i can compare these files... (10 Replies)
Discussion started by: Falstaff
10 Replies
CTHUMB(1)						      General Commands Manual							 CTHUMB(1)

NAME
cthumb - a themable web picture album generator SYNOPSIS
cthumb -c [options] imagefile ... > file.album cthumb [options] file.album DESCRIPTION
Cthumb creates themable web picture albums with thumbnails of all the pictures, comments for each picture, etc. Cthumb allows you to cre- ate web picture albums, i.e. collections of digital pictures, with small thumbnails of your pictures and with captions. In addition, it allows you to have several views of the collection of pictures. An album is composed of a series of pages, each composed of a collection of pictures. For each album page may optionally have two or more versions, like for instance in English, Spanish, German, French, etc. So your visitors would go into the English version of the web album, into the Spanish version, etc. Typically (this is what I use it for and why I wrote the program), you accumulate lots and lots of digital pictures and you need to label them and sort them out. Perhaps also you have friends and family that speak different languages. This program lets you very easily make picture albums and have the same pictures labelled in one or more languages. You can customize almost everything in the way the albums look on the screen, from the size of the thumbnails to the background and fore- ground colors, the border colors, whether you want film-strips and their picture, etc. OPERATION
Cthumb has two modes of operation. The first one, which is active when option -c is specified, prints an album file, via stdout, comprising all the images given as arguments to the command line. This is the first thing you need to do if you have never tried this program before, just to get you started. Once you have an album file, you edit it and put comments to the pictures, titles to the album pages, etc. In this mode, all the provided options in the command line will be passed through to the album file. See the format of the album file in section ALBUM FILES below. The second mode is the regular mode, the one that actually creates web pages, given the album file, so it is the one that does the real work of the script. Given an album file, cthumb generates web pages containing picture albums and an index with links to all the albums generated. Cthumb creates several HTML files, one per "Page" in the album. Check the README file (probably in /usr/doc/cthumb*/README) for more detailed info. OPTIONS
-c <files> Create an album file with the files listed and spit it out in stadard out. -l <n> Do pages in <n> languages. -f <n> Go into film mode (<n> thumbnails per row). -r Force re-generation of all thumbnails (slow). -x <n> Make thumbnail width <n>. -y <n> Make thumbnail height <n>. -n In film mode, don't generate the strips. -m Don't generate a main index file. -k Generate text captions under the thumbnails. -t Check the thumbnail width/height from the thumbnail image itself. This is slow. -b Put the bytes of the main picture in the caption. FILES
By default cthumb creates the following files (foo being the name of the album file): foo-index.html The table of contents. ALBUM FILES
Album files have a simple, textual format. First, comments in the file are started by the # character and last to the end of the line. The best way to find out the format is to use the -c <files> option for album creation mode, which outputs an album file in stdout. PER-USER VARIABLES cthumb allows users to have their own variable settings in $HOME/.cthumbrc which is read and interpreted by perl. If perl cannot parse the file, cthumb will complain rather dryly that there is a parse error in the file. VERSION
This is cthumb version 4.2. The latest version of cthumb can be found at this URL: http://puchol.com/cpg/software/cthumb/ AUTHOR
The main author Carlos Puchol <cpg@nospam.puchol.com>. A couple of other people around the net contributed to this program. See the AUTHORS file. LICENSE
This program is released under the GNU GPL license. COPYRIGHT
Copyright by Carlos Puchol, 1999, 2001. Warranty: the usual. No guarantee whatsoever is provided. No liability whatsoever is accepted for any loss or damage of any kind resulting from any defect or inaccuracy in this information or code. SEE ALSO
perl(1), pnm(5), djpeg(1), rdjpgcom(1), cjpeg(1) BUGS
Option -r regenerates all thumbnails as the program sees them, i.e. one per language. If a picture is listed twice in the album, it will be generated double the amount of times. If you have a lot of thumbnails, this can get lengthy. A workaround is to delete the thumbnails you want re-generated and run cthumb without the -r option. 7th Edition 02/19/01 CTHUMB(1)
All times are GMT -4. The time now is 06:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy