Sponsored Content
Top Forums Shell Programming and Scripting allow only alphnumeric entry and an underscore Post 302323862 by vickylife on Tuesday 9th of June 2009 08:15:41 AM
Old 06-09-2009
Question allow only alphnumeric entry and an underscore

I am taking an user input which should only be an alphanumeric character or an underscore. How to i do it?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

problem with underscore in variable name

can you help please. variable 1 = TODAY=`date +"%Y%m%d"` i.e. echo $TODAY 20080407 DB=GERMANY echo $DB GERMANY echo $DB.$TODAY GERMANY.20080407 echo $DB.$TODAY_1.dmp GERMANY..dmp (3 Replies)
Discussion started by: pinkie
3 Replies

2. Shell Programming and Scripting

usage of underscore in awk

Hi what is the purpose of using underscore in awk. I suppose it is for defining macro's and reducing repeatation but can some one show me an example? (6 Replies)
Discussion started by: ahmedwaseem2000
6 Replies

3. UNIX for Advanced & Expert Users

google search changes with an underscore

How does adding an underscore change a google search? I was searching for John Elway and got different results with and without an unscore. (3 Replies)
Discussion started by: cokedude
3 Replies

4. Shell Programming and Scripting

Changing the character after the Underscore(_)

Hi Everyone, I am looking for a command that would do the following: 1) Change all the letters/words in a file to Lower case Letters/words. 2) Remove the Underscore (_) and Change the Character after the underscore (_) to an Uppercase letter. Example: File contains the below words: ... (5 Replies)
Discussion started by: filter
5 Replies

5. Shell Programming and Scripting

Insert underscore at certain places

Hi all, I have to insert underscore at certain places(places before and after PAxxx/PAxxxx entries in a big file like this ESR1 PA156 leflunomide PA450192 CHST3 PA26503 docetaxel tungstate Pa4586; thalidomide Pa34958; PAxxx/PAxxxx entries are metioned between 2 names in each row ... (4 Replies)
Discussion started by: manigrover
4 Replies

6. Shell Programming and Scripting

underscore to dots

Hi, I have been trying to change underscores to dots. For example: 1122_91 1022_233 . 2237_23 9382_2339 2998_234 345_257 . . Desired output: 1122.91 1022.233 . 2237.23 9382.2339 2998.234 345.257 . . Any idea? Thanks (4 Replies)
Discussion started by: iconig
4 Replies

7. HP-UX

sed help with underscore problems

Hello, I have spent a couple of hours trying to answer this myself, so forgive me if the answer is simple but I have tried. I have a text file generated from svn log output which contains a list of files. Two regexps im using are * and * They both work but some lines has a mixture... (7 Replies)
Discussion started by: YogaBija
7 Replies

8. Shell Programming and Scripting

To count underscore in filename

Hi All I have a filename like below adsf_ghjt_kop_pol.csv Can you please get me a command for counting the number of underscore in the filename. In the above filename I should get output as 3, since the file name is having three underscore (5 Replies)
Discussion started by: ginrkf
5 Replies

9. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

10. Shell Programming and Scripting

How to replace multiple "&nbsp;" entry with in <td> tag into single entry using sed?

I have the input file like this. Input file: 12.txt 1) There are one or more than one <tr> tags in same line. 2) Some tr tags may have one <td> or more tna one <td> tags within it. 3) Few <td> tags having "<td> &nbsp; </td>". Few having more than one "&nbsp;" entry in it. <tr> some td... (4 Replies)
Discussion started by: thomasraj87
4 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)
All times are GMT -4. The time now is 02:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy