Hello,
I have the following to remove spaces from beginning and end of a string.
infile=`echo "$infilename" | sed 's/^ *//;s/ *$//`
How do I modify the above code to remove spaces from beginning, end and in the middle of the string also.
ex:
... (4 Replies)
Hi all, I'm a newbie to the Linux world and I got a couple of shell script questions:
(1) How do combine two variables and make it equal to a third variable? For example, I got a variable $A=FirstName, $B=LastName, and I want to combine the variable into one variable so when you echo the final... (4 Replies)
can any help how to remove blank spaces in a string?
STR="GOOD BYE"
by removing blank spaces, the string should be GOOD,BYE
thanks in advance (2 Replies)
dear pro-coders,
is there any command out there that takes out the front spaces from a string?
sample strings:
4 members
5 members
3 members
but it has to be like so:
4 members
5 members
3 members (3 Replies)
seems easy but havent found in other posts...
i want to delete any spaces if found before first occurence of ${AI_RUN}
sed 's/ *\\$\\{AI_RUN\\}/\\$\\{AI_RUN\\}/' $HOME/temp1.dat
i think i'm close but can't put my finger on it. :rolleyes: (6 Replies)
Hi,
I have a string like this and i want to remove extra spaces that exists between the words.
Here is the sentence.
$string="The small DNA genome of hepadnaviruses is replicated by reverse transcription via an RNA intermediate. This RNA "pregenome" contains ... (2 Replies)
Suppose, I have a variable var=" name is ".
I want to remove the blank spaces from the begining and endonly, not from the entire string.
So, that the variable/string looks like following
var="name is".
Please look after the issue. (3 Replies)
Hi there,
i need some help to remove all occurrences of a certain character at the beginning of a string.
Example: my string is 00102030 and i want to remove all zeros from beginning of string so the result is 102030 (3 Replies)
Hi,
In my file, I have few records which are split across multiple lines.
File 1:
=====
james,\n
pre-auth completed,in patient,\n
Fac_Id:23451,ramson,Dallas
Expected is:
==========
james,pre-auth completed,in patient,Fac_Id:23451,ramson,Dallas (8 Replies)
Discussion started by: machomaddy
8 Replies
LEARN ABOUT CENTOS
rgb2ycbcr
RGB2YCBCR(1) General Commands Manual RGB2YCBCR(1)NAME
rgb2ycbcr - convert non-YCbCr TIFF images to a YCbCr TIFF image
SYNOPSIS
rgb2ycbcr [ options ] src1.tif src2.tif ... dst.tif
DESCRIPTION
rgb2ycbcr converts RGB color, greyscale, 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; this can be changed with the -h and -v options.
Output data are compressed with the PackBits compression scheme, by default; an alternate scheme can be selected with the -c option. By
default, output data are compressed in strips with the number of rows in each strip selected so that the size of a strip is never more than
8 kilobytes; the -r option can be used to explicitly set the number of rows per strip.
OPTIONS -c Specify a compression scheme to use when writing image data: -c none for no compression, -c packbits for the PackBits compression
algorithm (the default), -c jpeg for the JPEG compression algorithm, -c zip for the deflate compression algorithm, and -c lzw for
Lempel-Ziv & Welch.
-h Set the horizontal sampling dimension to one of: 1, 2 (default), or 4.
-r Write data with a specified number of rows per strip; by default the number of rows/strip is selected so that each strip is approxi-
mately 8 kilobytes.
-v Set the vertical sampling dimension to one of: 1, 2 (default), or 4.
SEE ALSO tiffinfo(1), tiffcp(1), libtiff(3)
Libtiff library home page: http://www.remotesensing.org/libtiff
libtiff November 2, 2005 RGB2YCBCR(1)