hello
i need help to remove directory . The directory is not empty ., it contains
several sub directories and files inside that..
total number of files in one directory is 12,24,446 .
rm -rf doesnt work . it is prompting for every file ..
i want to delete without prompting and... (6 Replies)
Hi,
I am relatively new to Unix and trying to understand as much as I can.
I would like to know if it's possible to count the total number of Unix accounts? If so, can the count be done from any working directory or does it have to be specific to where the accounts are based?
Thanks! (4 Replies)
Hello All. I am trying to do this from a terminal prompt on my mac....
I have 100 folders all named different things. Those 100 folders are inside ~/Desktop/Pictures directory.
Each of the 100 folders are uniquely named. The image files inside of each folder only have some similarities.
... (1 Reply)
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
Hello I'm trying to do an exercise programming in bash where I have to get only the store of files in a directory but NOT all capacity of the directory.
I probe with: du -sh "$directory"*` but I get all the capacity and I probe with ls command but I couldnt.
Are there any way to get only files... (2 Replies)
Need a Unix command to save the last 20 versions of a file in a specific directory and delete everything else. Date is irrelevant. Anyone aware of such an animal?
In my test, I came up with:
ls -t1 /tmp/testfile* | tail -n +20 | xargs rm
I don’t quite trust the author though! (1 Reply)
Hi all,
I'm looking over all the internet for finding how to make a count of the files for every directory apart.. not a total result for the xx directories.
For example:
-dir1
file1
file2
-subdir1
-subdir2
file1
-subdir3
file1
-dir2
-dir3
file4
... (9 Replies)
Hello Is there a way to calculate how many times a particular symbol appeared in a string before a particular word.
Desktop/Myfiles/pet/dog/puppy
So, I want to count number of occurence of"/" in this directory before the word dog lets say.
Cheers,
Bob (3 Replies)
Hi expert,
Is there any fastest way to calculate recursive directory, and I have total 600 directories have 100000 files and 10 directory approximately 9000000 - 10000000 each files per directory. currently using this command "du -k --max-depth=0" to get the size but very slow it take 24 hours... (9 Replies)
Discussion started by: rufino
9 Replies
LEARN ABOUT REDHAT
tiffsetdirectory
TIFFSetDirectory(3T)TIFFSetDirectory(3T)NAME
TIFFSetDirectory, TIFFSetSubDirectory - set the current directory for an open TIFF file
SYNOPSIS
#include <tiffio.h>
int TIFFSetDirectory(TIFF* tif, tdir_t dirnum)
int TIFFSetSubDirectory(TIFF* tif, uint32 diroff)
DESCRIPTION
TIFFSetDirectory changes the current directory and reads its contents with TIFFReadDirectory. The parameter dirnum specifies the sub-
file/directory as an integer number, with the first directory numbered zero.
TIFFSetSubDirectory acts like TIFFSetDirectory, except the directory is specified as a file offset instead of an index; this is required
for accessing subdirectories linked through a SubIFD tag.
RETURN VALUES
On successful return 1 is returned. Otherwise, 0 is returned if dirnum or diroff specifies a non-existent directory, or if an error was
encountered while reading the directory's contents.
DIAGNOSTICS
All error messages are directed to the TIFFError(3T) routine.
%s: Error fetching directory count. An error was encountered while reading the ``directory count'' field.
%s: Error fetching directory link. An error was encountered while reading the ``link value'' that points to the next directory in a file.
SEE ALSO libtiff(3T), TIFFCurrentDirectory(3T), TIFFOpen(3T), TIFFReadDirectory(3T), TIFFWriteDirectory(3T)
October 15, 1995 TIFFSetDirectory(3T)