Made changes to a file using vi editor and saved those changes
now realised that the changes are not required
How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
I only know how to list all sub-directories or files in specified directory. I don't know how to order them by modified date, furthermore, I don't know how to get the top one file in the sorted list. Wish you can do me a favor. Thanks in advance! (3 Replies)
Hi.,
Last modified time of the folder is changing when I view the file inside the directory. Here is the test on sample directory. I believe that ls -l commands gives the time detail w.r.t last modified time. Pl. suggest.
bash-3.2$ mkdir test
bash-3.2$ cd test
bash-3.2$ touch myfile.txt... (2 Replies)
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
I wan to pick the latest modified file name and redirect it to a file ..
ls -tr | tail -1 >file
but this is printing file ins side the filename ,
can anyone help me out (5 Replies)
I am seeking help on one script that I created to celan up database audit files. The error returned is
$./clean_audit.sh: /opt/oracle/logs/audit_clean.log: cannot open The same script is working on other 2 or 3 servers. But not working on other 4 servers. All servers are Oracle Linux. Here is... (21 Replies)
I am trying to fetch the latest modified file from a directory using the command
find . -type f -exec ls -lt \{\} \+ | head | awk '{print $9}'
After the O/P, I get the below mentioned error and the command doesnt terminate at all.
find: ls terminated by signal 13
find: ls terminated by... (2 Replies)
hi,
We have a huge directory that ha 5.1 Million files in it. We are trying to get the file name and modified timestamp of the most recent 3 years from this huge directory for a migration project.
However, the ls command (background process) to list the file names and timestamp is running for... (2 Replies)
Discussion started by: subbu
2 Replies
LEARN ABOUT LINUX
tiffwritedirectory
TIFFWriteDirectory(3tiff) Introduction to Library Functions TIFFWriteDirectory(3tiff)NAME
TIFFWriteDirectory - write the current directory in an open TIFF file
SYNOPSIS
#include <tiffio.h>
int TIFFWriteDirectory(TIFF* tif)
DESCRIPTION
Write the contents of the current directory to the file and set up to create a new subfile in the same file. Applications only need to call
TIFFWriteDirectory when writing multiple subfiles to a single TIFF file. TIFFWriteDirectory is automatically called by TIFFClose and TIFF-
Flush to write a modified directory if the file is open for writing.
EXTENDED DESCRIPTION
Diagnostics
All error messages are directed to the TIFFError(3tiff) routine.
Error post-encoding befoBeforeecwritingitthe contents of the current directory, any pending data is flushed. This message indicates that an
error occurred while doing this.
Error flushing data befoBeforeewritingrthe.contents of the current directory, any pending data is flushed. This message indicates that an
error occurred while doing this.
Cannot write directory, Therefwasanot enough space to allocate a temporary area for the directory that was to be written.
Error writing directory Aowrite error occurred when writing the count of fields in the directory.
Error writing directory Aowriteserror occurred when writing the directory fields.
Error writing directory Aiwrite error occurred when writing the link to the next directory.
Error writing data for fAewriteserror occurred when writing indirect data for the specified field.
Error writing TIFF headeA.write error occurred when rewriting header at the front of the file.
Error fetching directoryAcread.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 directoryAlread 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.
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.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWTiff |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO libtiff(3), TIFFError(3tiff), TIFFOpen(3tiff), TIFFReadDirectory(3tiff), TIFFSetDirectory(3tiff)NOTES
This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004.
SunOS 5.10 05 Apr 2004 TIFFWriteDirectory(3tiff)