Check if this helps.
OR just (if suitable)
If not, how is the output, any error? Pls post the result.
Also as Scrutinizer told, U can process whole file in one go, no need to read file line by line
Hi all,
Am trying to execute a loop but having some troubles...
Files that will be query'd use the Julian date (eg: cpu032, cpu365) in their naming convention.
I'm a little lost how to maintain the three character format of the numeric portion of the file name while cycling backwards(or... (13 Replies)
unix program to which a directory name will be passed as
parameter. This directory will contain files with various
extensions. This script will create directories with the names of the
extention of the files and then put the files in the
corresponding folder. All files which do not have any... (2 Replies)
Hi,
I am a newbie to the UNIX world. I am asked to edit the file in hexadecimal format and save it. Later I should be able to print the file in char mode.
please anyone tell me how to do that mostly using VI editor. (1 Reply)
Hi all,
I have a file with 3 columns separated by space. Each column has a heading. I want to sort according to the values in the 2nd column (ascending order).
Ex.
Name rank direction
goory 0.05 --+
laby 0.0006 ---
namy 0.31 -+-
....etc.
Output should be
Name rank direction
laby... (3 Replies)
Currently I have the following to separate the numeric values. However the decimal point get separated.
ls -lrt *smp*.cmd | awk '{print $NF}' | sed 's/^.*\///' | sed 's/\(*\)/ & /g'
As an example on the files
n02-z30-dsr65-terr0.50-dc0.05-4x3smp.cmd... (8 Replies)
I have a text file that has data like:
Data "12345#22"
Fred
ID 12345
Age 45
Wilma
Dino
Data "123#22"
Tarzan
ID 123
Age 33
Jane
I need to figure out a way of adding 1,000,000 to the specific lines (always same format) in the file, so it becomes:
Data "1012345#22"
Fred
ID... (16 Replies)
Hi All,
I am trying write a simple command using AWK and SED to this but without any success.
Here is what I am using:
head -1 test1.txt>test2.txt|sed '1d;$d' test1.txt|awk '{print substr($0,0,(length($0)-2))}' >>test2.txt|tail -1 test1.txt>>test2.txt
Input:
Header
1234567
abcdefgh... (2 Replies)
Hi Unix Gurus,
I need to grep for a block that is between a start and end keyword and then in between I need to find and replace a keyword.
for eg: I need to search between Test = 000; and Test = 000; and find K9 and replace with M9
INPUT FILE
Define {
Replace = K9;
Test =... (6 Replies)
Hello friends,
I have a file with duplicate lines. I could eliminate duplicate lines by running
sort <file> |uniq >uniq_file and it works fine BUT it changes the order of the entries as it we did "sort".
I need to remove duplicates and also need to keep the order/sequence of entries. I... (1 Reply)
I have 2 input files (tab separated):
file1:
make_A 1990 foo bar
make_B 2010 this that
make_C 2004 these those
file2:
make_X 1970 1995 ref_1:43 ref_2:65
make_A 1970 1995 ref_1:4 ref_2:21 ref_3:18
make_A 1980 2002 ref_1:7 ref_2:7 ref_3:0 ... (2 Replies)
Discussion started by: beca123456
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)