10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am unable to loop print a python string array in my unix shell script:
~/readarr.sh '{{ myarr }}'
more readarr.sh
echo "Parameter 1:"$1
MYARRAY= $1
IFS=
MYARRAY=`python <<< "print ' '.join($MYARRAY)"`
for a in "$MYARRAY"; do
echo "Printing Array: $a"
done
Can you... (10 Replies)
Discussion started by: mohtashims
10 Replies
2. Shell Programming and Scripting
I have a small script that works well but when I am putting pipes at the end of the echo command, output is getting weird.
My script it below:
sed '1d' CONTROL_TOTALS_*.txt | while read eachline
do
tblnm=`echo $eachline | cut -d'_' -f3`
if
then stg_tblnm='PROVIDER_CONTRACT'
elif
then... (6 Replies)
Discussion started by: svks1985
6 Replies
3. UNIX for Dummies Questions & Answers
As the title suggests, I'm wondering if its possible to set a hostname to a name or word with Cyrillic letters (e.g. - Like the Russian alphabet). I tried installing the cyrillic-console package in Debian. I switched my desktop to Russian as well. However, when I try to set the hostname I get that... (2 Replies)
Discussion started by: Azrael
2 Replies
4. Shell Programming and Scripting
Hi All,
Iam unable to print the below block and getting the error.Can anyone please help me in this.
Input Data
eaits001z$ echo "-------LINENO_JOBID_VAL--------${LINENO_JOBID_VAL}---"
-------LINENO_JOBID_VAL--------58167|253473 58169|253473 58171|253473 58179|253473 58180|253473 58181|257311... (9 Replies)
Discussion started by: cskumar
9 Replies
5. Shell Programming and Scripting
Hi All,
I want to pass few dynamic arguments to shell script. The number of arguments differ each time I call the script.
I want to print the arguments using the for loop as below. But not working out.
for (( i=1; i<=$#; i++ ))
do
echo $"($i)"
done
/bin/sh test.sh arg1 arg2 arg3
... (1 Reply)
Discussion started by: laalesh
1 Replies
6. Shell Programming and Scripting
Hi All,
I am performing addition of two inetger variables which assigning output to a new variable getting following error.
Check1.sh
#!/bin/ksh
filesrc=/usr/kk/Source1.txt
filetgt=/usr/kk/Source2.txt
FINAL_COUNTS= `awk '{n++} END {printf "%012d\n",n}' ${filesrc} ${filetgt}`... (3 Replies)
Discussion started by: kmsekhar
3 Replies
7. Shell Programming and Scripting
i have written a shell script that reads a csv file and inserts tokenized strings into the database.
the problem comes when the csv file has cyrillic characters.
how do i set the parameters in my shell script(korn shell) so that any characters can be inserted into the database. (3 Replies)
Discussion started by: vkca
3 Replies
8. UNIX for Dummies Questions & Answers
Well. Again.
I have followed all the instructions in the Russian localization HOWTO and I am able to type in Russian and read it correctly in most programs such as Firefox, email and so on. However in the Nautilus file viewer, I get only ________ marks. I've seen some packages for Russian... (7 Replies)
Discussion started by: Levenson
7 Replies
9. SCO
UnixWare 7, Release 7.1.3
We have a customer that has frequent issues with Non-Root users being unable to print. They are able to print w/o issues, but all of the sudden it stops working. The only workaround we have at this point is to reboot the server. It is happening weekly according to... (1 Reply)
Discussion started by: cfshd
1 Replies
10. UNIX Desktop Questions & Answers
RedHat 7.2, Gnome 1.4. tried "everything" but still can't figure out how to make cyrillic characters work normally. actually I don't care about anything other than Opera (6.01). I need it to display cyrillic normally.
If anyone knows the solution plz help.
TIA!!! (2 Replies)
Discussion started by: D-Lexy
2 Replies
xlsfonts(1) General Commands Manual xlsfonts(1)
NAME
xlsfonts - server font list displayer for X
SYNOPSIS
xlsfonts [-display host:dpy] [-l] [-ll] [-lll] [-m] [-C] [-1] [-w width] [-n columns] [-u] [-o] [-fn pattern]
xlsfonts -printer printername [-l] [-ll] [-lll] [-m] [-C] [-1] [-w width] [-n columns] [-u] [-o] [-r resolution] [-b] [-B] [-g] [-G] [-x
mode] [-X mode] [-fn pattern]
DESCRIPTION
xlsfonts lists the fonts that match the given pattern. The wildcard character "*" may be used to match any sequence of characters (includ-
ing none), and "?" to match any single character. If no pattern is given, "*" is assumed.
The "*" and "?" characters must be quoted to prevent them from being expanded by the shell.
OPTIONS
-display host:dpy
This option specifies the X server to contact.
-printer printername
This option specifies the Xprint printer to contact.
-d host:dpy
Same as -display host:dpy.
-p printername
Same as -printer printername.
-l Lists some attributes of the font on one line in addition to its name.
-ll Lists font properties in addition to -l output.
-lll Lists character metrics in addition to -ll output.
-m This option indicates that long listings should also print the minimum and maximum bounds of each font.
-C This option indicates that listings should use multiple columns. This is the same as -n 0.
-1 This option indicates that listings should use a single column. This is the same as -n 1.
-w width
This option specifies the width in characters that should be used in figuring out how many columns to print. The default is 79.
-n columns
This option specifies the number of columns to use in displaying the output. By default, it will attempt to fit as many columns of
font names into the number of character specified by -w width.
-u This option indicates that the output should be left unsorted.
-o This option indicates that xlsfonts should do an OpenFont (and QueryFont, if appropriate) rather than a ListFonts. This is useful
if ListFonts or ListFontsWithInfo fail to list a known font (as is the case with some scaled font systems).
-r resolutionname
Set print resolution name (usually values like 300dpi or 300x600, see output of xplsprinters). This may alter the output of xls-
fonts if there are printer fonts which get enabled/disabled on per-resolution basis by the DDX.
(printer mode only)
-b List printer builtin fonts. This is the same as -x xp-list-internal-printer-fonts.
(printer mode only)
-B Do not list printer builtin fonts. This is the same as -X xp-list-internal-printer-fonts.
(printer mode only)
-g List glyph fonts. This is the same as -x xp-list-glyph-fonts.
(printer mode only)
-G Do not list glyph fonts. This is the same as -X xp-list-glyph-fonts.
(printer mode only)
-x mode
Enable listfont mode mode.
Supported modes are:
xp-listinternal-printer-fonts
If xp-listinternal-printer-fonts was set (via option -b or -x xp-listinternal-printer-fonts xlsfonts will include all of the
fonts defined as internal printer fonts.
xp-list-glyph-fonts
If xp-list-glyph-fonts was set (via option -g or -x xp-list-glyph-fonts) xlsfonts will include all of the fonts available to
the server which have glyphs associated with them.
The default value is implicitly determined by the ddx driver to be the all of the listfonts modes specified in the xp-listfonts-modes-sup-
ported printer attribute.
The value of xp-listfonts-modes-supported and xp-listfonts-modes (the defaults) can be looked-up via xplsprinters(1).
(printer mode only)
-X mode
Disable listfont mode mode. See option -x for a list of valid mode values.
(printer mode only)
-fn pattern
This option specifies the font name pattern to match.
SEE ALSO
X(7), Xprint(7), Xserver(1), xset(1), xfd(1), xplsprinters(1), X Logical Font Description Conventions
ENVIRONMENT
DISPLAY
DISPLAY must be set to get the default host and display to use.
XPSERVERLIST
XPSERVERLIST must be set for the -printer option identifying the available Xprint servers. See Xprint(7) for more details.
BUGS
Doing ``xlsfonts -l'' can tie up your server for a very long time. This is really a bug with single-threaded non-preemptable servers, not
with this program.
AUTHOR
Mark Lillibridge
Jim Fulton
Phil Karlton
Roland Mainz
X Version 11 xlsfonts 1.0.2 xlsfonts(1)