pbmupc(1) General Commands Manual pbmupc(1)NAME
pbmupc - create a Universal Product Code bitmap
SYNOPSIS
pbmupc [-s1|-s2] type manufac product
DESCRIPTION
Generates a Universal Product Code symbol. The three arguments are: a one digit product type, a five digit manufacturer code, and a five
digit product code. For example, "0 72890 00011" is the code for Heineken.
As presently configured, pbmupc produces a bitmap 230 bits wide and 175 bits high. The size can be altered by changing the defines at the
beginning of the program, or by running the output through pnmenlarge or pnmscale.
OPTIONS
The -s1 and -s2 flags select the style of UPC to generate. The default, -s1, looks more or less like this:
||||||||||||||||
||||||||||||||||
||||||||||||||||
||||||||||||||||
0||12345||67890||5
The other style, -s2, puts the product type digit higher up, and doesn't display the checksum digit:
||||||||||||||||
||||||||||||||||
0||||||||||||||||
||||||||||||||||
||12345||67890||
SEE ALSO pbm(5)AUTHOR
Copyright (C) 1989 by Jef Poskanzer.
14 March 1989 pbmupc(1)
Check Out this Related Man Page
pbmreduce(1) General Commands Manual pbmreduce(1)NAME
pbmreduce - read a portable bitmap and reduce it N times
SYNOPSIS
pbmreduce [-floyd|-fs|-threshold ] [-value val] N [pbmfile]
DESCRIPTION
Reads a portable bitmap as input. Reduces it by a factor of N, and produces a portable bitmap as output.
pbmreduce duplicates a lot of the functionality of pgmtopbm; you could do something like pnmscale | pgmtopbm, but pbmreduce is a lot
faster.
pbmreduce can be used to "re-halftone" an image. Let's say you have a scanner that only produces black&white, not grayscale, and it does a
terrible job of halftoning (most b&w scanners fit this description). One way to fix the halftoning is to scan at the highest possible res-
olution, say 300 dpi, and then reduce by a factor of three or so using pbmreduce. You can even correct the brightness of an image, by
using the -value flag.
OPTIONS
By default, the halftoning after the reduction is done via boustrophedonic Floyd-Steinberg error diffusion; however, the -threshold flag
can be used to specify simple thresholding. This gives better results when reducing line drawings.
The -value flag alters the thresholding value for all quantizations. It should be a real number between 0 and 1. Above 0.5 means darker
images; below 0.5 means lighter.
All flags can be abbreviated to their shortest unique prefix.
SEE ALSO pnmenlarge(1), pnmscale(1), pgmtopbm(1), pbm(5)AUTHOR
Copyright (C) 1988 by Jef Poskanzer.
02 August 1989 pbmreduce(1)
I have a file of 1000 rows , I need to format it to be coulmn seperatred by TAB , and print it
Ex:
12345
12345
12343
32232
23432
34242
43224
to like
12345 TAB 12345
12343 TAB 32232
23432 TAB 34242
43224 TAB .........
Thanks alot for your helping and care... (9 Replies)
All,
I have a file ABC.TXT which has two records:
12345 19.93 34.94
12345 94.84 10.48
If do the following command and
grep '12345' ABC.TXT >> test1.txt
If I look at the output of test1.txt I appears as follows:
12345 19.93 34.94 12345 94.84 10.48
I... (5 Replies)
Folks,
Is there a simple way to replace one digit by two digit using sed.
Example,
mydigit1918_2006_8_8_lag1.csv should be
mydigit1918_2006_08_08_lag01.csv.
I tried this way, but doesn't work.
echo mydigit1989_2006_8_8_lag1.csv|sed 's/]/0]/'
Thank you, (5 Replies)
Hi,
I am trying to use awk to split line before the pattern:
abcde 12345 67890 abcde 12345 67890 abcde 12345 67890 abcde 12345 67890 abcde 12345 67890 abcde 12345 67890 abcde 12345 67890
I need it to be like this:
abcde 12345 67890
abcde 12345 67890
abcde 12345 67890
abcde... (7 Replies)
Hullo. I have a log file:
(I) 02/03/2009 12:31:01 : Service Started
(I) 02/03/2009 12:31:02 : XML:
<xml>
<stuff>
...
</xml>
(I) 02/03/2009 12:31:02 : Service Stoped
...
...and I would like to remove date/time/PID-stamps so I can create a baseline for future comparisson. Ideal... (5 Replies)
field 12345 12345
field 12345
field 12345 123456
last fleld (from three) is optional, but if it occures It has to be composed only of nummbers and maximum 5 positions long.
If I use:
grep "^field \{5\}"
I get:
field 12345 12345
field 12345
field 12345 123456
But I wont... (11 Replies)
Hey,
I have to take one CSV file and break into more files. Let's I have a file prices.csv and the data in the file like
1,12345
1,34567
1,23456
2,67890
2,77720
2,44556
2,55668
10,44996
based on the first column, I want to create files. in this example 1 is repeated three times... (12 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)
sed -e '1d' -e 's/^\(]\{2\}\)-\(]\{3\}\)-\(]\{4\}\).*/"0000020\1\200\3"\,/g' abc.txt
This script returns many duplicates due to the duplciates in the .txt file.
i.e.
...
"000002012149000060",
"000002012149000064",
"000002012149000064",
"000002012149000064",
"000002012149000064",... (9 Replies)
Hi all ,
i want to get the most repeated column in my file
File:
name,ID
adam,12345 ----1
adam,12345 ----2
adam,934
adam,12345 ----3
john,14
john,13
john,25 ----1
john,25 ----2
tom,1 -----1
tom,2 -----1
so my output to be (5 Replies)
Hi, if i have data like below:
Control|AC-00011-CN-2475208 AC-00011-CN-2475211 AC-00007-CN-2475238 AC-00007-CN-2475241
Im getting output in required format as below
Control|AC-00011-CN-2475208
Control|AC-00011-CN-2475211
Control|AC-00007-CN-2475238
Control|AC-00007-CN-2475241
using
awk... (9 Replies)
The perl parser below works as expected assuming the last digit in the NC_ before the . is a single digit.
perl -ne 'next if $. == 1;
if(/.*del(+)ins(+).*NC_0{4}(+).*g\.(+)_(+)/) # indel
{
print join("\t", $3, $4, $5, $1, $2), "\n";
}
' out_position.txt > out1.txt
... (8 Replies)