11-17-2005
I got "good data" after I added
print $returnValue;
at the end of your script.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am trying to match a multi line string and return the matching string in one line. Here is the perl code that I wrote:
#!/usr/bin/perl
my $str='<title>My
title</title>';
if ($str =~ /(<title>)(+)(<\/title>)/ ){
print "$2\n";
}
It returns :
My
title
I want the... (3 Replies)
Discussion started by: sdubey
3 Replies
2. Shell Programming and Scripting
letz say that my file has 7 records with only one field. So my file has:
11111111
000000000000000
1111
aaaabbbccc
1111111222000000
aaaaaaaa
zz
All i need is:
1. when the field has a repetition of the same instance(a-z or 0-9), i would consideer it to be invalid.... (1 Reply)
Discussion started by: helengoldman
1 Replies
3. Shell Programming and Scripting
Dear all,
I have a simple issue on a perl regular expression. I want to get the characters in red from the next lines :
POWER_key
LEFT_key
RIGHT_key
OK_key
DOWN_key
and so on...
Thanks in advance for reply.
Ludo (1 Reply)
Discussion started by: lsaas
1 Replies
4. Shell Programming and Scripting
Hi,
I need and expression for a word like abc_xyz_ykklm
The expresion should indicate that the word starts with abc and end with ykklm but does not contain xyz string in the middle.
Example: abc_tmn_ykklm is ok and abc_xyz_ykklm is not Ok.
Please help.
Regards. (1 Reply)
Discussion started by: asth
1 Replies
5. Shell Programming and Scripting
Hello,
I am trying to use perl LWP module to read and get a specfic URL page. The issue is that the URL ends with the data and time and time is not consistent it changes all the time. if anyone could help me how to write a regular expressin that would work in the LWP::UserAgent get function to... (0 Replies)
Discussion started by: bataf
0 Replies
6. Shell Programming and Scripting
Could you help me with this please. This regular expression seems to match for the wrong input
#!/usr/bin/perl
my $inputtext = "W1a$%XXX";
if($inputtext =~ m/+X+/)
{
print "matches\n";
}
The problem seems to be %. if inputtext is W1a$XXX, the regex doesnot match.... (5 Replies)
Discussion started by: suppandi7
5 Replies
7. Shell Programming and Scripting
I am completely new to perl programming. My father is helping me learn said programming language. However, I am stuck on one of the assignments he has given me, and I can't find very much help with it via google, either because I have a tiny attention span, or because I can be very very dense.
... (4 Replies)
Discussion started by: kittyluva2
4 Replies
8. Shell Programming and Scripting
Hi I am doing something basic like...
if ($stringvariable =~ /have not typed/)
I have a little problem because the 'not' in the expression gets highlighted as a kind of a '!'..what am I supposed to do in this situation?
Thank you
---------- Post updated at 03:24 PM ----------... (1 Reply)
Discussion started by: vas28r13
1 Replies
9. Programming
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Discussion started by: jessy83
1 Replies
10. Shell Programming and Scripting
Hi ,
I have the below array
my @actionText = ("delivered to governor on 21/23/3345" , "deliver jllj" , "ram 2345/43");
When i am trying to grep the contents of array and if mathced substituting with the digitis or some date format from the element like below
my @action = grep { $_ =~... (7 Replies)
Discussion started by: ragilla
7 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)