09-24-2010
Seems I misunderstood the original request; this will just strip the paths which I don't think is what is desired.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
what does this command do ? as in
does this command just make sure everything in the file is executed?
or does it flush the file?
Actually this is used on a file in a progress database but I believe it is a unix command? (2 Replies)
Discussion started by: rocker40
2 Replies
2. Shell Programming and Scripting
Hello everybody it's me again.
I have a procces that is writing in a 'file1' automatically but i want to truncate 'file1' to a filesize 'x' that mean if the 'file1' size is 'x' i want to delete the first lines while the last lines are being writed, that have sence?
in the process are an... (1 Reply)
Discussion started by: Lestat
1 Replies
3. Shell Programming and Scripting
Is it possibe to use sed for the following? I would like to truncate the output of a directory path if it's over 3 directory levels deep. For example:
/dir1/dir2/dir3 -- NO change required
but,
/dir1/dir2/dir3/dir4 would output as ~/dir4
Thanks. (4 Replies)
Discussion started by: here2learn
4 Replies
4. Shell Programming and Scripting
I have one file which first line is blank and second line has some data.
$cat filename
output:
30-MAY-07
I want to store 30-MAY-07 value in one variable.
for that I wrote
var="`head -2 filename`"
It will give that result but I want to truncate the first line which is blank.
plz help. (2 Replies)
Discussion started by: rinku
2 Replies
5. Shell Programming and Scripting
Hi
In unix able to connect to oracle database and create table ,when rerun ,if table exist ,truncate that table.Any idea how to do that
a.sh
----
sqlplus -s datadmin/password <<EOF
create table xx(col1 number,
col2...
);
exit;
EOF
I... (1 Reply)
Discussion started by: mohan705
1 Replies
6. UNIX for Advanced & Expert Users
Hello,
Given below are 2 sample paths from 2 different servers:
/opt/temp/PROD/Script/New/Letters
/opt/Share/temp/Share1/PROD/Script/Files/New/Letters
I would like to truncate the path till the folder "PROD". Please note that the field count of the folder "PROD" vaires from... (1 Reply)
Discussion started by: DawnNish
1 Replies
7. Shell Programming and Scripting
Hi All
I've googled around for this and can't see a way of doing it.
I have a file that contains a number of records that are layed out something like the following.
/path/to/directory/that/contains/a/file/I/need/filename.pdf
The path itself can vary both in terms of the names and the... (7 Replies)
Discussion started by: Bashingaway
7 Replies
8. AIX
Hi,
i tryed
tprof -skex sleep 6
but...
Process PID TID Total Kernel User Shared Other Java
======= === === ===== ====== ==== ====== ===== ====
wait 57372 77863 31.31 31.31 0.00 0.00 0.00 0.00
wait ... (1 Reply)
Discussion started by: zanac
1 Replies
9. Shell Programming and Scripting
hi,
i have a directory at /path/unix with the following files
1.txt
2.txt
3.txt
4.txt
I want to make another file called filenames.txt at a different location called /path/home. So, my output file would be
/path/home/filenames.txt with contents
/path/unix/1.txt... (1 Reply)
Discussion started by: jacobs.smith
1 Replies
10. UNIX for Advanced & Expert Users
Currently I am using this laborious command
lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}'
Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
LEARN ABOUT DEBIAN
tiffstrip
TIFFSTRIP(3TIFF) TIFFSTRIP(3TIFF)
NAME
TIFFDefaultStripSize, TIFFStripSize, TIFFVStripSize, TIFFRawStripSize, TIFFComputeStrip, TIFFNumberOfStrips - strip-related utility rou-
tines
SYNOPSIS
#include <tiffio.h>
uint32 TIFFDefaultStripSize(TIFF *tif, uint32 estimate)
tsize_t TIFFStripSize(TIFF *tif)
tsize_t TIFFVStripSize(TIFF *tif, uint32 nrows)
tsize_t TIFFRawStripSize(TIFF *tif, tstrip_t strip)
tstrip_t TIFFComputeStrip(TIFF *tif, uint32 row, tsample_t sample)
tstrip_t TIFFNumberOfStrips(TIFF *tif)
DESCRIPTION
TIFFDefaultStripSize returns the number of rows for a reasonable-sized strip according to the current settings of the ImageWidth, BitsPer-
Sample, SamplesPerPixel, tags and any compression-specific requirements. If the estimate parameter, if non-zero, then it is taken as an
estimate of the desired strip size and adjusted according to any compression-specific requirements. The value returned by this function is
typically used to define the RowsPerStrip tag. In lieu of any unusual requirements TIFFDefaultStripSize tries to create strips that have
approximately 8 kilobytes of uncompressed data.
TIFFStripSize returns the equivalent size for a strip of data as it would be returned in a call to TIFFReadEncodedStrip or as it would be
expected in a call to TIFFWriteEncodedStrip.
TIFFVStripSize returns the number of bytes in a strip with nrows rows of data.
TIFFRawStripSize returns the number of bytes in a raw strip (i.e. not decoded).
TIFFComputeStrip returns the strip that contains the specified coordinates. A valid strip is always returned; out-of-range coordinate val-
ues are clamped to the bounds of the image. The row parameter is always used in calculating a strip. The sample parameter is used only if
data are organized in separate planes (PlanarConfiguration=2).
TIFFNumberOfStrips returns the number of strips in the image.
DIAGNOSTICS
None.
SEE ALSO
TIFFReadEncodedStrip(3TIFF), TIFFReadRawStrip(3TIFF), TIFFWriteEncodedStrip(3TIFF), TIFFWriteRawStrip(3TIFF), libtiff(3TIFF),
Libtiff library home page: http://www.remotesensing.org/libtiff/
libtiff October 15, 1995 TIFFSTRIP(3TIFF)