12-28-2014
Please use code tags as required by forum rules!
Did you consider searching these fora? Very similar requests have been asked; see table at the bottom.
Some questions:
- How can "PP13999920141228X.gz" exist when char 3 & 4 can be 01 - 10 only?
- Where in the output is the sequence no. 50?
- Why has the "X" in the original file names turned to an "A" in the output sample?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have two input files (given below) and to compare each line of the File1 with each line of File2 starts with '>sample1'. If a match occurs and that matched line in the File2 contains another line or sequence of lines starting with "Chr" they have to be displayed in output file with that sample.... (9 Replies)
Discussion started by: hravisankar
9 Replies
2. Shell Programming and Scripting
I have two input files (given below) and to compare each line of the File1 with each line of File2 starts with '>sample1'. If a match occurs and that matched line in the File2 contains another line or sequence of lines starting with "Chr" they have to be displayed in output file with that sample.... (4 Replies)
Discussion started by: hravisankar
4 Replies
3. Shell Programming and Scripting
KINDLY HELP ME FOR SHELL SCRIPTING FOR THIS TASK.
My input file consists of thousands of sequence in this format. The given input file consists of four sequences which are starting with ‘>’ symbol (each sequence shown in different colour for easy understanding). I have to use a command at $... (3 Replies)
Discussion started by: kswapnadevi
3 Replies
4. Shell Programming and Scripting
Hi All,
I need a shell script which could insert a sequence number column inside a dat file(pipe delimited).
I have the dat file similar to the one as shown below..
|A|B|C||D|E
|F|G|H||I|J
|K|L|M||N|O
|P|Q|R||S|T
As shown above, the column 4 is currently blank and i need to insert sequence... (5 Replies)
Discussion started by: nithins007
5 Replies
5. Programming
Dear Perl's Users,
Could anyone help me how to solve my problem. I have data with details below.
TTY NAME SEQUENCES
U-0 UNIX 0
U-1 UNIX 1
U-2 UNIX 2 <-- From 2 jump to 5
U-5 UNIX 5
U-6 UNIX 6 <-- From 6 jump to 20
U-20 ... (2 Replies)
Discussion started by: askari
2 Replies
6. UNIX for Advanced & Expert Users
Dear All members,
i have some trouble here, i want to ask your help. The case is:
I have some data, it's like:
-ABCD1234
-ABCD1235
-ABCD1237
-BCDE1111
-BCDE1112
-BCDE1114
there is some missing data's sequence (the format is: ABCD = name 1234 = sequence).
I want to print the... (2 Replies)
Discussion started by: septian.tri
2 Replies
7. Shell Programming and Scripting
Hi,
I need to find out the missing sequence from a list. However the issue is there is not a fixed start and end, it depends on the generation of files.
For eg, it might start with 4000 and end with 9000.
Based on this, I need a script which greps the start and end sequence from the... (3 Replies)
Discussion started by: danish0909
3 Replies
8. Shell Programming and Scripting
Hi,
I have a file which contains few columns and the first column has the file names, and I would like to identify the missing file sequence number form the file and would copy to another file. My files has data in below format.
APKRISPSIN320131231201319_0983,1,54,125,... (5 Replies)
Discussion started by: rramkrishnas
5 Replies
9. Shell Programming and Scripting
Dear all
i am having file with max 24 entries. i want to find which sequence is missing
file is like this
df00231587.dat
df01231587.dat
df03231587.dat
df05231587.dat
.
.
.
df23231587.dat
the changing seq is 00-23,so i would like to find out which seq is missing like in above... (13 Replies)
Discussion started by: sagar_1986
13 Replies
10. Shell Programming and Scripting
Hi All,
I have a requirement that i need to list only the missing sequences with a unix script.
For Example:
Input:
FILE_001.txt
FILE_002.txt
FILE_005.txt
FILE_006.txt
FILE_008.txt
FILE_009.txt
FILE_010.txt
FILE_014.txt
Output:
FILE_003.txt
FILE_004.txt
FILE_007.txt
FILE_011.txt... (5 Replies)
Discussion started by: Arun1992
5 Replies
LEARN ABOUT FREEBSD
rawtopgm
rawtopgm(1) General Commands Manual rawtopgm(1)
NAME
rawtopgm - convert raw grayscale bytes into a portable graymap
SYNOPSIS
rawtopgm [-bpp [1|2]] [-littleendian] [-maxval N] [-headerskip N] [-rowskip N] [-tb|-topbottom] [width height] [imagefile]
DESCRIPTION
Reads raw grayscale values as input. Produces a PGM file as output. The input file is just a sequence of pure binary numbers, either one
or two bytes each, either bigendian or littleendian, representing gray values. They may be arranged either top to bottom, left to right or
bottom to top, left to right. There may be arbitrary header information at the start of the file (to which rawtopgm pays no attention at
all other than the header's size).
Arguments to rawtopgm tell how to interpret the pixels (a function that is served by a header in a regular graphics format).
The width and height parameters tell the dimensions of the image. If you omit these parameters, rawtopgm assumes it is a quadratic image
and bases the dimensions on the size of the input stream. If this size is not a perfect square, rawtopgm fails.
When you don't specify width and height, rawtopgm reads the entire input stream into storage at once, which may take a lot of storage.
Otherwise, rawtopgm ordinarily stores only one row at a time.
If you don't specify imagefile, or specify -, the input is from Standard Input.
The PGM output is to Standard Output.
OPTIONS
-maxval N
N is the maxval for the gray values in the input, and is also the maxval of the PGM output image. The default is the maximum value
that can be represented in the number of bytes used for each sample (i.e. 255 or 65535).
-bpp [1|2]
tells the number of bytes that represent each sample in the input. If the value is 2, The most significant byte is first in the
stream.
The default is 1 byte per sample.
-littleendian
says that the bytes of each input sample are ordered with the least significant byte first. Without this option, rawtopgm assumes
MSB first. This obviously has no effect when there is only one byte per sample.
-headerskip N
rawtopgm skips over N bytes at the beginning of the stream and reads the image immediately after. The default is 0.
This is useful when the input is actually some graphics format that has a descriptive header followed by an ordinary raster, and you
don't have a program that understands the header or you want to ignore the header.
-rowskip N
If there is padding at the ends of the rows, you can skip it with this option. Note that rowskip need not be an integer. Amaz-
ingly, I once had an image with 0.376 bytes of padding per row. This turned out to be due to a file-transfer problem, but I was
still able to read the image.
Skipping a fractional byte per row means skipping one byte per multiple rows.
-bt -bottomfirst
By default, rawtopgm assumes the pixels in the input go top to bottom, left to right. If you specify -bt or -bottomfirst, rawtopgm
assumes the pixels go bottom to top, left to right. The Molecular Dynamics and Leica confocal format, for example, use the latter
arrangement.
If you don't specify -bt when you should or vice versa, the resulting image is upside down, which you can correct with pnmflip .
This option causes rawtopgm to read the entire input stream into storage at once, which may take a lot of storage. Ordinarly, raw-
topgm stores only one row at a time.
For backwards compatibility, rawtopgm also accepts -tb and -topbottom to mean exactly the same thing. The reasons these are named
backwards is that the original author thought of it as specifying that the wrong results of assuming the data is top to bottom
should be corrected by flipping the result top for bottom. Today, we think of it as simply specifying the format of the input data
so that there are no wrong results.
SEE ALSO
pgm(5), rawtoppm(1), pnmflip(1)
AUTHORS
Copyright (C) 1989 by Jef Poskanzer.
Modified June 1993 by Oliver Trepte, oliver@fysik4.kth.se
14 September 2000 rawtopgm(1)