10-23-2012
well this is not really important ... but yes could be in same directory
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
filenames:
contains name of list of files to search in.
placelist
contains the names of places to be searched in all files in "filenames"
for i in $(<filenames)
do
egrep -f placelist $i
if ]
then
echo $i
fi
done >> outputfile
Output i am getting: (0 Replies)
Discussion started by: pinnacle
0 Replies
2. Shell Programming and Scripting
Hello,
I am new to unix and need help with a problem. I have 2 files each containing multiple columns of information ie;
File 1 :
A B C D E
1 2 3 4 5
File 2 :
F G
6 7
I would like to merge the information from File 2 to File 1 so that the data reads as follows;
File 1:
A... (4 Replies)
Discussion started by: crunchie
4 Replies
3. Shell Programming and Scripting
Hi,
I have to write one script that has to search a list of numbers in certain zipped files.
For eg. one file file1.txt contains the numbers. File1.txt contains 5,00,000 numbers and I have to search each number in zipped files(The number of zipped files are around 1000 each file is 5 MB)
I have... (10 Replies)
Discussion started by: vsachan
10 Replies
4. Solaris
Hi,
I want to find for a particular word which is existing in different files and folders under the parent directory. What command can I use to retrieve all the file names which is having the word. (1 Reply)
Discussion started by: rogerben
1 Replies
5. Shell Programming and Scripting
Hello there,
I am trying to extract (string) information ( a list words) from 4 files and then put the results into 1 file. Currently I am doing this using grep -f list.txt file1 . and repeat the process for the other 3 files. The reasons i am doing that (a) I do know how to code (b) each file... (4 Replies)
Discussion started by: houkto
4 Replies
6. Shell Programming and Scripting
Hey gyuz,
I wanna calculate the number of mapped reads of a bam file in a region of interest. I used this code to do so :
samtools view input.bam chrname:region1 > region1.txt
This will store all the reads from given bam file within the region of interest in region1.txt
Now I have... (5 Replies)
Discussion started by: @man
5 Replies
7. Shell Programming and Scripting
I have a list of files all over a file system e.g.
/home/1/foo/bar.x
/www/sites/moose/foo.txtI'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There... (2 Replies)
Discussion started by: spacegoose
2 Replies
8. Shell Programming and Scripting
Hello,
I have hundreds of files in which I need to change email address. Here is what I am trying to do:
1. All text files are in a directory "a"
2. In the text file, I want to replace email address for preparer. All these lines start with {{PreparerEmail and end with }}. The email... (3 Replies)
Discussion started by: cartrider
3 Replies
9. Shell Programming and Scripting
I need to look for 3 files in a particular directory, if they are > 0kb. If files exist proceed further, if not mail out saying one of the file is missing. All the 3 files should be present.
Please see my script below and correct if needed. Anyway, it is not working.
#! /bin/bash... (13 Replies)
Discussion started by: Radfelder
13 Replies
10. UNIX for Beginners Questions & Answers
Im having an issue when trying to replace the first column with a new set of values in multiple files. The results from the following code only replaces the files with the last set of values in val.txt. I want to replace all the files with all the values.
for date in {1..31}
do
for val in... (1 Reply)
Discussion started by: ncwxpanther
1 Replies
LEARN ABOUT REDHAT
tiffwritedirectory
TIFFWriteDirectory(3T) TIFFWriteDirectory(3T)
NAME
TIFFWriteDirectory, TIFFRewriteDirectory - write the current directory in an open TIFF file
SYNOPSIS
#include <tiffio.h>
int TIFFWriteDirectory(TIFF* tif)
int TIFFRewriteDirectory(TIFF* tif)
DESCRIPTION
TIFFWriteDirectory will write the contents of the current directory to the file and setup to create a new subfile in the same file. Appli-
cations only need to call TIFFWriteDirectory when writing multiple subfiles to a single TIFF file. TIFFWriteDirectory is automatically
called by TIFFClose and TIFFFlush to write a modified directory if the file is open for writing.
The TIFFRewriteDirectory function operates similarly to TIFFWriteDirectory but can be called with directories previously read or written
that already have an established location in the file. It will rewrite the directory, but instead of place it at it's old location (as
TIFFWriteDirectory would) it will place them at the end of the file, correcting the pointer from the preceeding directory or file header to
point to it's new location. This is particularly important in cases where the size of the directory and pointed to data has grown, so it
won't fit in the space available at the old location.
RETURN VALUES
1 is returned when the contents are successfully written to the file. Otherwise, 0 is returned if an error was encountered when writing
the directory contents.
DIAGNOSTICS
All error messages are directed to the TIFFError(3T) routine.
Error post-encoding before directory write. Before writing the contents of the current directory, any pending data are flushed. This mes-
sage indicates that an error occurred while doing this.
Error flushing data before directory write. Before writing the contents of the current directory, any pending data are flushed. This mes-
sage indicates that an error occurred while doing this.
Cannot write directory, out of space. There was not enough space to allocate a temporary area for the directory that was to be written.
Error writing directory count. A write error occurred when writing the count of fields in the directory.
Error writing directory contents. A write error occurred when writing the directory fields.
Error writing directory link. A write error occurred when writing the link to the next directory.
Error writing data for field "%s". A write error occurred when writing indirect data for the specified field.
Error writing TIFF header. A write error occurred when re-writing header at the front of the file.
Error fetching directory count. A read error occurred when fetching the directory count field for a previous directory. This can occur
when setting up a link to the directory that is being written.
Error fetching directory link. A read error occurred when fetching the directory link field for a previous directory. This can occur when
setting up a link to the directory that is being written.
SEE ALSO
libtiff(3T), TIFFOpen(3T), TIFFError(3T), TIFFReadDirectory(3T), TIFFSetDirectory(3T)
September 26, 2001 TIFFWriteDirectory(3T)