01-25-2012
Just curious. Why can't you use bc?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi! Is there is any way to divide the screen when I use UNIX shells (I have RedHat 7.1)? I have to see the command promt and process some data from very long file at the same time (I work with PThreads). Some "pseudo-windows" in text mode, huh? =) Thanks in advance and don't be angry =) (4 Replies)
Discussion started by: ShockTeam
4 Replies
2. Programming
Hi ..
I have a file which contains a list of numbers like..
1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,
2028,2029,2030,2031,2032,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,... (2 Replies)
Discussion started by: jazz
2 Replies
3. UNIX for Dummies Questions & Answers
Hi
I know its a dumb question but can any one please explain me the difference of executing a shell script in the following 2 ways.
. script.sh
sh script.sh
I have a problem if I execute the following code as sh script.sh
DB_CNT_ALW=0.20
SCT_VAR=0.05
if ; then
echo "== Difference... (3 Replies)
Discussion started by: shash
3 Replies
4. Shell Programming and Scripting
Hi All,
I have two variables like below..
ETIMEHR =03 #END TIME HOUR
ETIMEMIN=02 #END TIME MIN
Now I'm converting the min to hour by deviding it by 60
ETIMEMINCONV=`echo "scale=2; $ETIMEMIN/60" | bc`
but when i print ETIMEMINCONV instead of getting... (6 Replies)
Discussion started by: smarty86
6 Replies
5. Shell Programming and Scripting
Hello!
Im trying to divid the numbers inputed by <STDIN> by 2.
This is what I have:
print "The input array divided by 2 is as follows:\n"; foreach ((@userArray)/2) {print}
But it is not dividing by 2?
Any help is valuable!!
Ben (3 Replies)
Discussion started by: bigben1220
3 Replies
6. UNIX for Dummies Questions & Answers
Hi!
Is there an easy way (maybe using awk??) to divide the values of one column of the file by it's first entry..
If I have a column:
3
4
5
6
7
I would like to divide it by 3.
I want to do this for more than 100 files, so it wouldn't be practical to open file by file and... (26 Replies)
Discussion started by: cosmologist
26 Replies
7. Shell Programming and Scripting
Hi,
I have a file containing 28048 lines and I would like to split it into a a file with 3506 lines and 8 columns?
In column 1, I would like to have the first 3506 lines, in columns 2 the second 3506 lines and so on.
I've been looking around in the forum but I found very specific cases.
Is... (1 Reply)
Discussion started by: f_o_555
1 Replies
8. Shell Programming and Scripting
Hi,
I have written this code the division of two numbers and multiply it by hundred (to get the percent)
echo "script running for the 1st time"
cp value_directory_present.txt /home/mysql_cnbc/value_directory_past.txt
rm -f test6.txt value_directory_present.txt
else
y1=`awk '{print $1}'... (5 Replies)
Discussion started by: arijitsaha
5 Replies
9. Shell Programming and Scripting
Hello,
I am using Awk in UBUNTU 12.04.
I have a file as follows, the first column represents the name of populations, in my real file, I have 47 populations and 2172 lines in total with about 47000 fields.
ABO_1 1 2
ABO_1 1 2
ABO_2 1 1
GPO_1 1 1
GPO_1 2 2
GPO_2 1 0
GPO_2 2 0
I want... (3 Replies)
Discussion started by: Homa
3 Replies
10. Shell Programming and Scripting
Does anyone know how to include as a script maybe an "echo" warning that explains that if a user uses the second number "zero" when dividing, that the result will BE "zero."
I need, example: 5/0 (second number) = 0, in script form.
current script:
echo "Enter a number"
read num1
echo... (4 Replies)
Discussion started by: jefferj54
4 Replies
LEARN ABOUT CENTOS
tftopl
TFTOPL(1) General Commands Manual TFTOPL(1)
NAME
tftopl - convert TeX font metric (tfm) files to property lists
SYNOPSIS
tftopl [OPTIONS] tfm_name[.tfm] [pl_name[.pl]]
DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual
Web2C: A TeX implementation.
The tftopl program translates a (program-oriented) font metric file to a (human-oriented) property list file. Thus, you can edit the con-
tents of the TFM files, if the font designer has not done his or her job properly, or if you're encountering strange difficulties, or if
you're just curious. It also serves as a TFM-file validating program, i.e., if no error messages are given, the input file is correct.
The pl_name is extended with .pl if it lacks a suffix. If pl_name is not given, standard output is used. Likewise, tfm_name is extended
with .tfm if it lacks a suffix. Also, path searching is done for the TFM file using the environment variable TEXFONTS. If that is not
set, tftopl uses the system default.
See tex(1) for the details of the searching.
OPTIONS
-charcode-format=format
The argument format specifies how character codes are output in the PL file. By default, only letters and digits are output using
the C integer code (i.e., in ASCII); the others are output in octal. (Unless the font's coding scheme starts with TeX math sy or
TeX math ex, in which case all character codes are output in octal.) If format is ascii, all character codes that correspond to
graphic characters, besides the left and right parentheses, are output in ASCII. Finally, if format is octal, all character codes
are output in octal.
-verbose
Without this option, tftopl operates silently. With it, a banner and progress report are printed on stdout.
SEE ALSO
pltotf(1),
Donald E. Knuth, TeX for nroffware.
Donald E. Knuth, The Metafontbook (Volume C of Computers and Typesetting), Addison-Wesley, 1986, ISBN 0-201-13445-4.
AUTHORS
Donald E. Knuth wrote the program. It was published as part of the TeX for nroffware technical report, available from the TeX Users Group.
Howard Trickey and Pavel Curtis originally ported it to Unix.
Web2C 2012 17 December 1994 TFTOPL(1)