07-31-2017
H F D are just variables, nothing special about them. I could have used almost any other alphanumeric name.
I wasn't quite sure if done <$FILE would work with three separate reads (one per line), so I redirected stdin itself to avoid needing any redirection later. With just one read, I know done <$FILE will work fine.
On thinking, it probably would have worked in the first version too. So, in the end, no real reason.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i am trying to link the text files that i generated from my shell script to an html page, to that i can view them using a browser, like internet explorer.
i want to open the text files in html page when i enter a command to view the text file from the shell command.
please could anyone help... (1 Reply)
Discussion started by: alexd
1 Replies
2. UNIX for Dummies Questions & Answers
Hi, I need to convert a relatively large html file (1.5megs) into CSV under Unix. How would I be able to do this?
Much thanks. (3 Replies)
Discussion started by: Jexel
3 Replies
3. UNIX for Dummies Questions & Answers
I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part.
Same problem happens in "type" command in MS-DOS.
I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies
4. Shell Programming and Scripting
Hi,
I need to convert a text file formatted like this ("tshark -z conv,ip" output) to HTML:
=====================================================================================================
IPv4 Conversations
Filter:<No Filter>
| <- ... (4 Replies)
Discussion started by: ph0enix
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Say there is a web page that contains just text only - that is, even the source code is just the text itself, nothing more. An example would be "http://mynasadata.larc.nasa.gov/docs/ocean_percent.txt"
Is there a UNIX command that would allow me to download this text and store it in a... (1 Reply)
Discussion started by: Breanne
1 Replies
6. Shell Programming and Scripting
Not sure the most effient way to do this.
I have figiured out how to extract columns with shell script, but not sure how to convert
This is what I have...
NEWDNS 04-Jun-2011 06:00:59.762 10.220.136.217 crl.verisign.com
This is what I need.... Change date, remove mil seconds,... (1 Reply)
Discussion started by: mrlayance
1 Replies
7. UNIX for Dummies Questions & Answers
I have a text file with irregular spacing between values which makes it really difficult to manipulate. Is there an easy way to convert it into a space delimited text file so that all the spaces, double spaces, triple spaces, tabs between numbers are converted into spaces. The file looks like this:... (5 Replies)
Discussion started by: evelibertine
5 Replies
8. Shell Programming and Scripting
Hi All,
I do have a file with many lines (rows) and it is space delimited. For example: I have a file named SR345_pl.txt. If I open it in an editor, it looks like this:
adfr A2 0.9345
dtgr/2 A2 0.876
fgh/3 A2 023.76
fghe/4 A2 2345
bnhy/1 A3 3456
bhy A3 0.9876
phy A5 0.987
kdrt A5... (9 Replies)
Discussion started by: Lucky Ali
9 Replies
9. Shell Programming and Scripting
Hi ,
I need a help in following scenario.I tried searching in google but couldn't able to find the exact answer. Sorry if i am re-posting already answered query.
While i am trying to convert into log file into csv i couldn't able to get the format which i am looking for.
I converted file... (4 Replies)
Discussion started by: varmas424
4 Replies
10. Shell Programming and Scripting
Gents
Using the script attached (raw2csv). i use to create the file .csv.. The input file is called 201.raw.
Kindly can you check if there is easy way to do it. The script works fine but takes a lot time to process
Thanks for your help (8 Replies)
Discussion started by: jiam912
8 Replies
jtops(1) User Commands jtops(1)
NAME
jtops - postscript filter for printing Japanese characters on Sun Laser Writer or Japanese postscript printer
SYNOPSIS
jtops [-12rRjJvwWmg] [-ln] [-s size] [-f font] [filename...]
AVAILABILITY
SUNWjfpu
DESCRIPTION
jtops is a filter for converting Japanese characters to Japanese postscript output which uses Kanji font on a printer side. Input from
stdin is converted and sent to stdout.
If there is no filename, the standard input is read.
By default, it forms font size 10 and 66 lines per page for the portrait form.
Before checking options specified in command lines, it interprets the strings in the JTOPS environment variable as options.
OPTIONS
-1 1 column output (by default).
-2 2 columns output.
-r Rotate for the landscape form.
-R Output in the portrait form (by default).
-v Use Kanji-fonts of printer (for the Japanese PostScript printer by default).
-l n Specify the number of lines per page as n (by default 66).
-m Use Ming style as Japanese fonts (by default).
-g Use Gothic style as Japanese fonts. As alphabetic fonts use Courier-Bold style unless -f option is specified.
-f font Specify alphabetic fonts in font. By default, use Courier style without -g option, otherwise Courier-Bold style.
-s size Set font size to size. When the fontsize is specified with -s, the lines per page are calculated as follows:
portrait: 720 / (fontsize + 1)
landscape: 550 / (fontsize + 1)
-j Use half size alphanumeric of Japanese fonts as alphanumeric fonts.
-J Use Courier as alphanumeric fonts( by default).
-W Control the ratio of alphanumeric character and Japanese to be 1:2, except changeable width of alphanumeric fonts( by default).
-w Not control the ratio of alphanumeric character and Japanese.
EXAMPLES
Example 1:
example% jtops -j -l40 -s11 filename | lpr
example% pr -l120 filename | jtops -l120 -s5 | lpr
example% jtops -2r filename | lpr
ENVIRONMENT VARIABLES
The locale has to be set to ja, ja_JP.eucJP, ja_JP.PCK, or ja_JP.UTF-8 in your environment.
SEE ALSO
expand(1), lp(1), pr(1), lpr(1B), lpfilter(1M)
NOTES
jtops supports the following character sets;
o JIS X 0201 figure character set for Roman
o JIS X 0201 figure character set for Katakana
o JIS X 0208
SunOS 5.10 13 Sep 2002 jtops(1)