I try to write a tcsh-script which works with ImageMagick.
The following command line works perfectly:
I use the following code in a script (it is a minimal example to show the problem):
In my opinion, the last line of the code should do the same as the above command. However, the last line produces error messages, which are related to the "-symbols in namestr.
Hello
I was wandering if I can combine find command in side for each loop in unix
the main propose is to change some thing in files from several types and not all of them
is this possible ? (on liner script? )
tnx for the helppers (3 Replies)
Hi All,
I am using the below while syntax for reading my file but its not working. Below is the line in my file
" 123 rteyu 566"
when I use below code the spaces are truncated for 1st variable
while read line
do
x=`echo "$line"|cut -c 1-8`
y=`echo "$line"|cut -c 9-15`
echo "$x"
echo "$y"... (3 Replies)
Hi again,
in my bash script I have several variable strings like in an array
STRING_NAME="qqq qqq qqq"
STRING_NAME="www www www"
STRING_NAME="eee eee eee"
This strings are passed to another program as
${STRING_NAME}
The problem is the program doesn't recognize the whole string
"qqq... (2 Replies)
Hi,
I have a FTP script which gets called from a wrapper script that exports a variable having value as:
"/export/home/dips/logs/dipsSFTP_file1.log.YYYYMMDDHHMISS". I want to extract the file name "dipsSFTP_file1.log.YYYYMMDDHHMISS" and the dir path "/export/home/dips/logs/" from this... (4 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
I came across and unexpected behavior with redirections in tcsh. I know, csh is not best for redirections, but I'd like to understand what is happening here.
I have following script (called out_to_streams.csh):
#!/bin/tcsh -f
echo Redirected to STDOUT > /dev/stdout
echo Redirected to... (2 Replies)
I have 100 strings, which have YYYYDDMMHHMMSS in it and only one is YYYYMMDD-HHMMSS.
I want to find that dash and replace it. If I check each string, using sed 's/-//g', it shows me warning that - is not found.
So I need if ;then sed 's/-//g', but I cannot find correct regular expression to... (11 Replies)
Discussion started by: digioleg54
11 Replies
LEARN ABOUT OPENSOLARIS
rgb2ycbcr
rgb2ycbcr(1) User Commands rgb2ycbcr(1)NAME
rgb2ycbcr - convert non-YCbCr TIFF images to YCbCr TIFF images
SYNOPSIS
rgb2ycbcr [options] src1.tif [src2.tif...] dest.tif
DESCRIPTION
rgb2ycbcr converts RGB color, grayscale, or bi-level TIFF images to YCbCr images by transforming and sampling pixel data. If multiple files
are specified on the command line, each source file is converted to a separate directory in the destination file.
By default, chrominance samples are created by sampling 2 by 2 blocks of luminance values, and output data files are compressed with the
LZW compression scheme, with each strip no more than 8 kilobytes. These characteristics can be overridden or explicitly specified with the
options described below.
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.
-h Set the horizontal sampling dimension to one of the following: 1, 2, or 4. The default value is 2.
-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.
-v Set the vertical sampling dimension to one of the following: 1, 2, or 4. The default value is 2.
OPERANDS
The following operands are supported:
src.tif The name of the input file that contains non-YCbCr TIFF data.
dest.tif The name of the output file that contains YCbCr TIFF data.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWTiff |
+-----------------------------+-----------------------------+
|Interface stability |Uncommitted |
+-----------------------------+-----------------------------+
SEE ALSO tiffinfo(1), tiffcp(1), libtiff(3)NOTES
Updated by Breda McColgan, Sun Microsystems Inc., 2004.
SunOS 5.11 26 Mar 2004 rgb2ycbcr(1)