09-01-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I am trying to search a firewall syslog space delimeted file for all of the different tcp and udp destination ports.
I know that grep will find lines that contain specific text. And I have tried using the the the cut command to cut out of the file certain colums. However the test I am... (6 Replies)
Discussion started by: andyblaylock
6 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I have a file with single white space delimited values, I want to convert them to a tab delimited file.
I tried sed, tr ... but nothing is working.
Thanks,
Rajeevan D (16 Replies)
Discussion started by: jeevs81
16 Replies
3. Shell Programming and Scripting
how to replace the 3rd colum? Each line begins similarly, but they all ends variously.
XX YY 03 variable text here
XX YY 03 more variable text here
XX YY 03 even more variable text here really long setence
XX YY 03 variable numbers also appear 03 11. 123 456
XX YY 03 the occasional comma,... (4 Replies)
Discussion started by: ajp7701
4 Replies
4. UNIX for Dummies Questions & Answers
I have a space delimited text file with 1,000,000+ columns and 100 rows. I want to delete columns 2 through 5 (2 and 5) included from the text file. How do I do that? Thanks. (3 Replies)
Discussion started by: evelibertine
3 Replies
5. UNIX for Dummies Questions & Answers
I have this space delimited large text file with more than 1,000,000+ columns and about 100 rows. I want to delete all the cells that consist of just 2 (leave 2's that are not by themselves intact):
File before modification
aa bb cc 2 NA100 dd
aa b1 c2 2 NA102 de
File after modification... (1 Reply)
Discussion started by: evelibertine
1 Replies
6. UNIX for Dummies Questions & Answers
I have a space delimited text file with 1,000,000+ columns? I would only like to view specific ones (let's say through 1:10), how can I do that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a space delimited text file that looks like the following:
250 rs10000056 0.04 0.0888 4 189321617
250 rs10000062 0.05 0.0435 4 5254744
250 rs10000064 0.02 0.2403 4 127809621
250 rs10000068 0.01 NA
250 rs1000007 0.00 0.9531 2 237752054
250 rs10000081 0.03 0.1400 4 17348363... (5 Replies)
Discussion started by: evelibertine
5 Replies
8. UNIX for Dummies Questions & Answers
I have a space delimited text file with two columns. I would like to add NA to the first column of the text file.
Input:
19625 10.4791768259
19700 10.8146489183
19701 10.9084026759
19702 10.9861346978
19703 10.9304364984
Output:
NA19625 10.4791768259
NA19700 10.8146489183... (1 Reply)
Discussion started by: evelibertine
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
How do you swap two rows in a space delimited text file? Thanks! (4 Replies)
Discussion started by: evelibertine
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
PSIGN(1) General Commands Manual PSIGN(1)
NAME
psign - produce a RADIANCE picture from text.
SYNOPSIS
psign [ options ] [ text ]
DESCRIPTION
Psign produces a RADIANCE picture of the given text. The output dimensions are determined by the character height, aspect ratio, number of
lines and line length. (Also the character size if text squeezing is used.) If no text is given, the standard input is read.
-cb r g b Set the background color to r g b The default is white (1 1 1).
-cf r g b Set the foreground color to r g b The default is black (0 0 0).
-dr Text reads to the right (default).
-du Text reads upwards.
-dl Text reads to the left (upside down).
-dd Text reads downwards.
-h cheight
Set the character height to cheight. The default is 32 pixels.
-a aspect Set the character aspect ratio (height/width) to aspect. The default value is 1.67.
-x xsize Set the horizontal image size to xsize. Use with -y option (below) in place of the -h specification to control output image size
directly. If the character aspect ratio (-a option, above) is non-zero, then one of the specified x or y output dimensions may
be reduced to maintain this ratio. If direction is right (-dr) or left (-dl), then it is not necessary to give the -y option,
since it can be computed from the character height (-h).
-y ysize Set the vertical image size to ysize. Use with the -x option (described above). If direction is up (-du) or down (-dd), then it
is not necessary to give the -x option, since it can be computed from the character height (-h).
-s spacing
Set the intercharacter spacing to spacing. The magnitude of this value is multiplied by the character height over the aspect
ratio (ie. the character width) to compute the desired distance between characters in the output. The sign of the value, posi-
tive or negative, determines how this ideal spacing is used in the actual placement of characters. If spacing is positive, then
the overall width of the line will not be affected, nor will indentation of textual elements. Thus, the text format will be
mostly unaffected. However, spacing between characters will reflect their relative size for a more natural appearance. If spac-
ing is negative, characters will be squeezed together to meet the spacing critereon, regardless of how it might affect the format
of the output. The default value for spacing is zero, which is interpreted as uniformly spaced characters.
-f fontfile
Load the font from fontfile. The default font is helvet.fnt
EXAMPLE
To put a big "Hi!" on the terminal:
psign -h 22 -a 1 -cb 0 0 0 -cf 1 1 1 Hi! | ttyimage
ENVIRONMENT
RAYPATH path to search for font files
AUTHOR
Greg Ward
BUGS
The entire bitmap is stored in memory, which can be a problem for large and/or high-resolution signs.
SEE ALSO
getinfo(1), pcompos(1), pfilt(1), ttyimage(1)
RADIANCE
10/9/97 PSIGN(1)