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
DH_INSTALLXFONTS(1) Debhelper DH_INSTALLXFONTS(1)
NAME
dh_installxfonts - register X fonts
SYNOPSIS
dh_installxfonts [debhelperoptions]
DESCRIPTION
dh_installxfonts is a debhelper program that is responsible for registering X fonts, so their corresponding fonts.dir, fonts.alias, and
fonts.scale be rebuilt properly at install time.
Before calling this program, you should have installed any X fonts provided by your package into the appropriate location in the package
build directory, and if you have fonts.alias or fonts.scale files, you should install them into the correct location under etc/X11/fonts in
your package build directory.
Your package should depend on xfonts-utils so that the update-fonts-* commands are available. (This program adds that dependency to
${misc:Depends}.)
This program automatically generates the postinst and postrm commands needed to register X fonts. These commands are inserted into the
maintainer scripts by dh_installdeb. See dh_installdeb(1) for an explanation of how this works.
NOTES
See update-fonts-alias(8), update-fonts-scale(8), and update-fonts-dir(8) for more information about X font installation.
See Debian policy, section 11.8.5. for details about doing fonts the Debian way.
SEE ALSO
debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_INSTALLXFONTS(1)