08-16-2012
YES - That Works !!! Thanks !
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can some body tell me how to print number of line from a particular file, with sed. ?
Input file format
AAAA
BBBB
CCCC
SDFFF
DDDD
DDDD
Command to print line 2 and 3 ?
BBBB
CCCC
And also please tell me how to assign column sum to variable.
I user the following command it... (1 Reply)
Discussion started by: maheshsri
1 Replies
2. Shell Programming and Scripting
Hi!
How can I print out a specific range of rows, like "cat file | awk NR==5,NR==9", but in the END-statement?
I have a small awk-script that finds specific rows in a file and saves the line number in an array, like this:
awk '
BEGIN { count=0}
/ZZZZ/ {
list=NR
... (10 Replies)
Discussion started by: Bugenhagen
10 Replies
3. Shell Programming and Scripting
Hi,
I want to print only lines in between two strings and not the strings using awk.
Eg:
OUTPUT
top 2
bottom 1
left 0
right 0
page 66
END
I want to print into a new file only
top 2
bottom 1
left 0... (4 Replies)
Discussion started by: jisha
4 Replies
4. UNIX for Dummies Questions & Answers
Hi everyone!
I'm not new to Unix, but I've never used awk before.
I tried to look up this information on several sites and forums,
I also looked in the documentation but I haven't found a solution yet.
I would like to print the previous 3 lines before and the following 4 lines after the... (6 Replies)
Discussion started by: djcsabus
6 Replies
5. UNIX for Dummies Questions & Answers
Ok so I can use awk to match a pattern and print the whole line with print $0. Is there any way to just tell awk to print every line of output when the pattern matches?
I'm having it wait for the word error and then print that entire line. But what I actually need to see is all the following... (9 Replies)
Discussion started by: MrEddy
9 Replies
6. Shell Programming and Scripting
Dear All,
a.txt
A 1 Z
A 1 ZZ
B 2 Y
B 2 AA
how can i use awk one line to achieve the result:
A Z|ZZ
B Y|AA
Thanks (5 Replies)
Discussion started by: jimmy_y
5 Replies
7. UNIX for Dummies Questions & Answers
I need to print a specific string from an html file that's always occurring between two other known strings. Example: from the text below, I would like to print the bolded part:
<this is a lot of text before the string I want
to print> fullpath: abc/def/ghi/example.xlf -cfver. <sample text... (15 Replies)
Discussion started by: danegon
15 Replies
8. UNIX for Dummies Questions & Answers
URGENT HELP IS NEEDED!!
I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but
- Currently, script is not printing lines to File3.txt in order.
- Also the matching lines are not moving out of File1.txt
... (1 Reply)
Discussion started by: High-T
1 Replies
9. Shell Programming and Scripting
Hello to all,
I'm trying to print the value corresponding to the words A, B, C, D, E. These words could appear sometimes and sometimes not inside each group of lines. Each group of lines begins with "ZYX".
My issue with current code is that should print values for 3 groups and only is... (6 Replies)
Discussion started by: Ophiuchus
6 Replies
10. Shell Programming and Scripting
Hi again,
is it possible to do the following using awk?
input file is
4.465E+17
5.423E+16
1.218E+17
2.600E+16
9.135E+15
1.238E+14
...
6.238E+14
desired output
4.465E+17 &
5.423E+16 &
1.218E+17 &
2.600E+16 &
9.135E+15 &
1.238E+14 &
... & (3 Replies)
Discussion started by: f_o_555
3 Replies
LEARN ABOUT DEBIAN
foo2slx
foo2slx(1) General Commands Manual foo2slx(1)
NAME
foo2slx - Convert Ghostscript pbmraw or bitcmyk format into a SLX printer stream
SYNOPSIS
foo2slx [options] <pbmraw-file >slx-file
foo2slx [options] <bitcmyk-file >slx-file
foo2slx [options] <pksmraw-file >slx-file
DESCRIPTION
foo2slx converts Ghostscript pbmraw, bitcmyk, or pksmraw output formats to monochrome or color SLX streams, for driving the Lexmark C500
network color laser printer and other SLZ-based printers. The SLX stream is a variant of ZjStream produced by Software Imaging K.K.
COMMAND LINE OPTIONS
Normal Options
These are the options used to select the parameters of a print job that are usually controlled on a per job basis.
-c Force color mode if autodetect doesn't work.
-g xpixxypix
Set page dimensions in pixels [10200x6600].
-m media
Media code to send to printer [0].
-----------------------
Media SLX
-----------------------
plain 0
transparency 1
labels 2
thick1 3
envelope1 4
thin 5
thick2 6
envelope2 7
middle 8
special 9
-p paper
Paper code to send to printer [6].
+---------------+-------------+
| 6 letter | 2 A4 |
| 9 legal | 4 B5 |
| 8 executive | 5 B5iso |
|10 env #10 | 11 env DL |
+---------------+-------------+
-n copies
Number of copies [1].
-r xresxyres
Set device resolution in pixels/inch [1200x600].
-s source
Source (InputSlot) code to send to printer [0].
|0 auto | 1 cassette1
Printer Tweaking Options
These are the options used to customize the operation of foo2slx for a particular printer.
-u xoffxyoff
Set the offset of the start of the printable region from the upper left corner, in pixels [0x0].
-l xoffxyoff
Set the offset of the end of the printable region from the lower right corner, in pixels [0x0].
-L mask
Send logical clipping amounts implied by -u/-l in the ZjStream [3].
0 don't send any logical clipping amounts
1 only send Y clipping amount
2 only send X clipping amount
3 send both X and Y clipping amounts
-A AllIsBlack: convert C=1,M=1,Y=1 to just K=1. Works with bitcmyk input only.
-B BlackClears: K=1 forces C,M,Y to 0. Works with bitcmyk input only.
Debugging Options
These options are used for debugging foo2slx.
-S plane
Output just a single color plane from a color print and print it on the black plane. The default is to output all color planes.
1 Cyan
2 Magenta
3 Yellow
4 Black
-D level
Set Debug level [0].
EXAMPLES
Create a black and white SLX stream:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
-sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw
-sOutputFile=- - < testpage.ps
| foo2slx -r1200x600 -g10200x6600 -p1 >testpage.zm
Create a color SLX stream:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
-sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=bitcmyk
-sOutputFile=- - < testpage.ps
| foo2slx -r1200x600 -g10200x6600 -p1 >testpage.zc
FILES
/usr/bin/foo2slx
SEE ALSO
foo2slx-wrapper(1), slxdecode(1)
AUTHOR
Rick Richardson <rick.richardson@comcast.net>
http://foo2slx.rkkda.com/