I have a file like below. How can I add a new value after moss separated by a comma. This adding script should work in such a way that each time i pass a value it should be added one after the other separated by commas.
Hi Guys,
I am trying to reading in comma seperated values in awk. I can set the delimiter to be a comma, but the tricky part is that commas that appear within quotes are not to be considered as delimiters. Could someone please help.
Regards,
Laud (1 Reply)
Hi,
I have a comma seperated list of values:
export list="red,blue,white,yellow"
Given a value in a variable "look", i want to check whether the value is available in the above list. But the result should be based on exact string match and not part of the string.
I am using following... (9 Replies)
I have a list of servers in a file called serverlist like this
server1
server2
server3
i need to have them (with no trailing comma, the program does not like that)
server1,server2,server3
so far i have been using
HOSTS=/tmp/serverlist
HOSTS=${HOSTS:-$(grep -Ev "^#|^$"... (2 Replies)
Hi,
how can i make a comma seperated output summary.
i attached the sample log file.
I have to capture these data in the log file.
Arcotid
Time Stamp, Username, Success, Failure, Error Code, Error Message
In the log snippet the userID can be found in-
Code
Arcot Native Server:... (3 Replies)
I have a file with the below content
a = test1
b = test2
a = test3
b= test4
c = test6
b = test5
d = test7
d = test9
Need the output to be as follows
a = test1,test3
b = test2, test5
c = test6
d = test7, test9 (4 Replies)
Hi,
I have a data file separated by comma, data enclosed by ""
head file.txt
"HD","Sep 13 2016 1:05AM","0001"
"DT","273093045","192534"
"DT","273097637","192534"
..
I want to get the 3rd column value (0001) to be assigned to my variable
I tried
FILE_VER=`cat file.txt | awk... (2 Replies)
Discussion started by: Prasannag87
2 Replies
LEARN ABOUT DEBIAN
image_to_j2k
IMAGE_TO_J2K(1) OPENJPEG TOOLS IMAGE_TO_J2K(1)NAME
image_to_j2k - convert a PNM, PGM, PPM, PGX or BMP into a J2K or JP2 file
SYNOPSIS DESCRIPTION
image_to_j2k converts an image into a JPEG 2000-encoded image
OPTIONS -ImgDir sourcedir
Directory of PGM, PPM, PNM, PGX or BMP files to convert
-OutFor extension
J2K or JP2 output file format
-i source
PNM, PGM or PPM file to convert
-o destination
J2K or JP2 file to output to
-h Display help information
-cinema2k fps
Digital Cinema 2K profile compliant codestream for 2K resolution. 24 or 48 fps.
-cinema4k [fps]
Digital Cinema 4K profile compliant codestream for 4K resolution. fps default is 24
-r ratios
compression factor for successive layers, comma seperated
-q psnr
psnr for successive layers, comma seperated
-n rescount
number of resolutions
-b blocksize
width and height of code block, comma-seperated
-c precintsize
width and height of precinct, comma-seperated
-t tilesize
width and height of tile, comma-seperated
-p progression
progression order, one of LRCP, RLCP, RPCL, PCRL, CPRL
-s subsampling
subsampling factor in X and Y, comma-seperated. Values larger than 2 can produce errors
-POC orders
progression order change
-SOP
write SOP marker before each packet
-EPH
write EPH marker after each header packet
-M modeflags
Sum of the values of the modes, as follows:
1. BYPASS (LAZY)
2. RESET
4. RESTART (TERMALL)
8. VSC
16. ERTERM (SEGTERM)
32. SEGMARK (SEGSYM)
-x indexfile
create an index file
-ROI:quantize
quantization indices upshifted for component c between 0 and 2 inclusive with an upshift of U between 0 and 37 inclusive
-d imageoffset
X and Y offset of the origin of the image, comma-seperated
-T tileoffset
X and Y offset of the origin of the tiles, comma-seperated
-I use the irreversible DWT 9-7
EXAMPLE
ratios: 20,10,1 Quality 1: compress 20x; Quality 2: compress 10x; Quality 3: lossless compression
psnr: 30,40,50
quantize: c=0,U=25
orders: T1=0,0,1,5,3,CPRL Title 1: Resolution 0 start, component 0 start, layer 1 end, resolution 5 end, component 3 end, CPRL progression
AUTHOR
Written by Paul Hampson <Paul.Hampson@Pobox.com> based on the output of image_to_j2k -h as part of the Debian packaging of OpenJPEG
COPYRIGHT
Copyright 2007 Paul Hampson
SEE ALSO j2k_to_image(1), <http://www.openjpeg.org/index.php?menu=doc#encoder>
1.3+dfsg 2014-04-22 IMAGE_TO_J2K(1)