Hi,
I am a newbie to shell scripting, and I have a file which quite large which I would like to delete lines at certain places. I want to search for a keyword which is recurring in the file. When matched I would like to delete the line. And when the file was so huge I thought I ought to learn... (3 Replies)
Input:
a
b
b
c
d
d
I need:
a
c
I know how to get this (the lines that have duplicates) :
b
d
sort file | uniq -d
But i need opossite of this. I have searched the forum and other places as well, but have found solution for everything except this variant of the problem. (3 Replies)
Hi All,
I have a file with 3 columns (Bank Name, Account Number and Amount). My requirement, I need to delete lines using Unix Shell script:
1. Which are having Alphanumeric characters in Account Number (eg. Line3).
2. Which are having 0.00 in amount. (eg. Line4)
3. And also I need to... (4 Replies)
Hi Experts,
I have a file in the below given format. First two lines are header and Trailer. Rest all are transaction Lines. I have to delete all other lines except first line (Header) and lines which contains 5000 in 1st column and 0 in 5th column.
Can anyone please kindly provide me with... (6 Replies)
Hi Experts,
I have a file format as mentioned below. I would like to have unix script (HP Unix) which can:
1. Remove first 6 and last 3 lines.
2. Delete the lines where 3rd column having Alpha Numeric Number
3. Delete the lines where 4th column having 0.00
4. Calculate the sum of all the... (16 Replies)
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
Discussion started by: krishnix
16 Replies
LEARN ABOUT MOJAVE
ras2tiff
ras2tiff(1) User Commands ras2tiff(1)NAME
ras2tiff - create a TIFF file from a Sun rasterfile
SYNOPSIS
ras2tiff [options] input.ras output.tif
DESCRIPTION
ras2tiff converts a file in the Sun rasterfile format to TIFF. By default, the TIFF image is created with data samples packed (PlanarCon-
figuration=1), compressed with the Lempel-Ziv and Welch algorithm (Compression=5), and with each strip no more than 8 kilobytes. These
characteristics can be overridden or explicitly specified with the options described below.
Any colormap information in the rasterfile is carried over to the TIFF file by including a Colormap tag in the output file. If the raster-
file has a colormap, the PhotometricInterpretation tag is set to 3 (palette). Otherwise, the PhotometricInterpretation tag is set to 2
(RGB) if the depth is 24, or to 1 (min-is-black) if the depth is not 24.
OPTIONS
The following options are supported:
-c Specify a compression scheme to use when writing image data:
-c jpeg Baseline JPEG compression algorithm.
-c lzw Lempel-Ziv and Welch algorithm. This is the default algorithm.
-c none No compression.
-c packbits PackBits compression algorithm.
-c zip Deflate compression algorithm.
-r Write data with a specified number of rows per strip. By default, the number of rows per strip is selected so that each
strip is approximately 8 kilobytes.
OPERANDS
The following operands are supported:
input.ras The name of the input file that contains Sun rasterfile data.
output.tif The name of the output file that contains TIFF data.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWTiff |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO pal2rgb(1), tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)NOTES
Does not support all possible rasterfiles. In particular, ras2tiff does not support run-length encoded images.
Updated by Breda McColgan, Sun Microsystems Inc., 2004.
SunOS 5.10 26 Mar 2004 ras2tiff(1)