I have a file (test) that looks like below and I am trying to match for *.tif and print the output to another file expecting the output to be something like /opt/apps/image/35645-3456.tif. I would greatly appreciate any ideas you can provide.
Moderator's Comments:
Please use CODE tags when displaying sample input, sample output, and code segments as required by forum rules.
Last edited by Don Cragun; 03-02-2017 at 01:20 AM..
Reason: Add CODE and ICODE tags.
Hi I have used many times the various methods to append two lines together in a file.
This time I want to append the 1st line to the second and repeat for the complete file.... an example
This is the file
owns the big brown dog
joe
owns the small black dog
jim
What I want is
... (7 Replies)
Hi All,
I have a file which contains data as below
When we see no pipe character in the line. append those lines to the previous line with pipe character till we get the next line with pipe character with ~(concat with ~)
Input file looks like:
1080530944|001|john.l.bonner|Acknowledge|CN... (11 Replies)
Hi all,
Please help me in providing sample code to append the following 4 lines in one row.
Input :
A1/EXT "BAPBSC10/07B/00" 523 090530 0115
RXOCF-430 HY1711 1
EXTERNAL ALARM
DOOR ALARM
Output should be :
A1/EXT "BAPBSC10/07B/00" 523 090530 0115 ... (8 Replies)
Hi,
I need help for below scenario.I have a flat file which is having records seperated by delimiters which will represent each record for oracle table.My Control file will consider each line as one record for that table. Some of the lines are aligned in two/three lines so that records are... (4 Replies)
After I create printer queues in AIX, I have to append a filter file location within that printers custom file. within lets say test_queue.txt I need to find the row that starts with :699 and then I need to append on the end the string /usr/local/bin/k_portrait.sh.
Now I've gotten the sed... (2 Replies)
I need some help. I would like to read in a text file.
Take a variable such as ROW-D-01, compare it to what's in one line in the text file such as PROD/VM/ROW-D-01 and only input PROD/VM into a variable without the /ROW-D-01.
Is this possible? any help is appreciated. (2 Replies)
Hi,
I have an XML file and I am tring to extract some data form it, after lot of data cleaning process, I ended up with an issue, and need your urgent support.
my current input data in below format:
<Node>xxxxxx
<Node>yyyyy</Node>
<Node>zzzzzz
<Node>12345</node>
I need... (9 Replies)
Hi,
i have a file with multiple entries. After some tests with sed i managed to get the file output as follows:
lsn=X-LINK-IN0,apc=661:0,state=avail,avail/links=1/1,
00,2110597,2094790,0,81,529,75649011,56435363,
lsn=TM1ITP1-AM1ITP1-LS,apc=500:0,state=avail,avail/links=1/1,... (5 Replies)
Discussion started by: nms
5 Replies
LEARN ABOUT OPENSOLARIS
tiffmedian
tiffmedian(1) User Commands tiffmedian(1)NAME
tiffmedian - apply the median cut algorithm to data in a TIFF file
SYNOPSIS
tiffmedian [options] input.tif output.tif
DESCRIPTION
tiffmedian applies the median cut algorithm to an RGB image in input.tif, to generate a palette image that is written to output.tif. The
generated colormap has, by default, 256 entries. The image data is quantized by mapping each pixel to the closest color values in the col-
ormap.
OPTIONS
The following options are supported:
-c Specify a compression scheme to use when writing image data:
-c lzw Lempel-Ziv and Welch algorithm.
-c none No compression.
-c packbits PackBits compression algorithm.
-c zip Deflate compression algorithm.
If no compression-related option is specified, the input-file compression algorithm is used.
-C Specify the number of entries to use in the generated colormap. By default, all 256 entries or colors are used.
-f Apply Floyd-Steinberg dithering before selecting a colormap entry.
-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.tif The name of the input TIFF file.
output.tif The name of the output file.
EXTENDED DESCRIPTION
LZW compression can be specified together with a predictor value. A predictor value of 2 causes each scanline of the output image to
undergo horizontal differencing before being encoded. A predictor value of 1 forces each scanline to be encoded without differencing.
LZW-specific options are specified by appending a colon-separated list to the lzw option. For example, specify -c lzw:2 for LZW compression
with horizontal differencing.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWTiff |
+-----------------------------+-----------------------------+
|Interface stability |Uncommitted |
+-----------------------------+-----------------------------+
SEE ALSO
Color Image Quantization for Frame Buffer Display, Paul Heckbert, SIGGRAPH proceedings, 1982, pp. 297-307.
pal2rgb(1), tiffinfo(1), tiffcp(1), tiffcmp(1), libtiff(3)NOTES
Updated by Breda McColgan, Sun Microsystems Inc., 2004.
SunOS 5.11 26 Mar 2004 tiffmedian(1)