Sponsored Content
Top Forums Shell Programming and Scripting Adding variables in a unix script Post 302348034 by vbe on Thursday 27th of August 2009 07:49:13 AM
Old 08-27-2009
ant:/home/vbe $ echo "$A+$B+$C"
3+4+9.5
ant:/home/vbe $ echo "$A+$B+$C"|bc
16.5
 

9 More Discussions You Might Find Interesting

1. Programming

adding variables for, for loop

I have a structure which contains n number of elements. For example: stFruits : apple, grapes, strawberry, pear, kiwi, melon, papaya, mango, orange, sweetlime ..... etc Now i have to write a for loop as follows: int i; int j; j=stFruits.apple+stFruits.grapes+stFruits.pear+.... and so... (3 Replies)
Discussion started by: jazz
3 Replies

2. Shell Programming and Scripting

Pass variables to a Unix script from a file

Hi, I am running a Java program from a unix script. I need to pass a variable to the Java code from a file. Here are teh details: cat Parm <<this is my Parameter file>> queuename=queue1 and my shell script is : #!/bin/ksh . ./Parm /opt/java1.5/bin/java -classpath ./java.jar... (1 Reply)
Discussion started by: sangharsh
1 Replies

3. Shell Programming and Scripting

Simple unix variables in script

I'm creating a script that asks a user for a variable ex read filename; read numberinput; I also have a bunch of files named file.0 file.1 ... file.55 I'm trying to delete all files (if they exist) about file.$numberinput. Can someone help me out on how to include the variable as part... (6 Replies)
Discussion started by: jenix4545
6 Replies

4. Solaris

Creating script adding 3 different variables in 3 columns

I have 3 variables with different information.. they look like this (row-wise aswell): Variable1 = Roland Kalle Dalius Variable2 = ake123 ler321 kaf434 Variable3 = Richardsen Sworden Lokthar How can I sort them by variable3 alphabetical and add them into the same output so... (0 Replies)
Discussion started by: Prantare
0 Replies

5. Shell Programming and Scripting

Adding Variables

Hi. I have a for loop that I use to extract integer values in a shell script (ksh). Now, I would like to add the values. My preference, from my c programming days, would be to do something like the commented out line below in the for loop. However, this is not recognised. So I use the line... (2 Replies)
Discussion started by: mikem22
2 Replies

6. UNIX for Dummies Questions & Answers

Define variables with UNIX script

oopps! I Meant "Define Variables within a UNIX Script" What would be the best way to define a variable in a unix shell script so anyone who views this script doesn't know what value is assigned to that variable. some other location... a="/usr/lib/fileA" Unix script... sed... (5 Replies)
Discussion started by: macastor
5 Replies

7. Shell Programming and Scripting

Using Datastage environment variables in Unix script

Hi All, I am using ETL tool Datastage and is installed on Linux environment. Few environment variables are set in datastage. Now my requirement is to use those environment variables in a unix script. Is there any option I can do it? Sugeestions from people working on datastage and linux... (1 Reply)
Discussion started by: bghosh
1 Replies

8. UNIX for Dummies Questions & Answers

Adding variables to repeating strings

Hello, I want to add a letter to the end of a string if it repeats in a column. so if I have a file like this: DOG001 DOG0023 DOG004 DOG001 DOG0023 DOG001 the output should look like this: DOG001-a DOG0023-a DOG004 DOG001-b (15 Replies)
Discussion started by: verse123
15 Replies

9. Windows & DOS: Issues & Discussions

Adding same value to variables in does each repetition of command

So, I have this command: mkdir rolled for %%x in (*gif) do convert %%x -roll +2+6 %%x|move %%x rolled I'd like to have the +2 and +6 accumulate here. In each new gif tackled, it should increase by the amount: +2 (for x) and +6 (for y) Is this possible? I'm on Windows, DOS. (0 Replies)
Discussion started by: pasc
0 Replies
ant-phone(1)							 ANT Manual Pages						      ant-phone(1)

NAME
ant-phone - an interactive ISDN telephone application SYNOPSIS
ant-phone [options] DESCRIPTION
ant-phone is part of ANT (ANT is Not a Telephone). It let's you make and receive telephone calls and talk via sound devices. It uses CAPI 2.0 as ISDN interface. OPTIONS
ant-phone accepts the following options: -h, --help Show summary of options -v, --version Print version information -r, --cleanup Remove stale socket file left by accident by a previous run of ANT. You only need this option if ANT says: "local bind: Address already in use" -d, --debug[=debuglevel] Print additional runtime debugging data to stdout, debuglevel = 1..4 -i, --soundin=device ALSA device name for input (recording), default: "default" -o, --soundout=device ALSA device name for output (playback), default: "default" -m, --msn=msn identifying MSN (for outgoing calls), 0 for master MSN of this termination/port, default: 0 -l, --msns=msns MSNs to listen on, semicolon-separated list or '*', default: * -c, --call=number Make a running instance of ANT make a call to the specified number, useful for calling from an external address book application -s, --sleep Shut down CAPI connection to prepare for removal of broken kernel modules, which don't survive suspend/restore. -w, --wakeup Restore CAPI connection after ISDN modules loaded again. The connection will be also restored by dialing a number, but before the connection is restored, you won't be able to accept calls. NOTES
If the used sound devices (arguments of --soundin and --soundout) are equal, a full duplex sound device is needed. FILES
~/.ant-phone/history the last dialed numbers ~/.ant-phone/options user specific options file ~/.ant-phone/callerid saved history of incoming and outgoing calls ~/.ant-phone/recordings/* recordings of recorded phone calls BUGS
Caller ID stores hangup reason localized. This will break, if someone uses letters outside of English alphabet for translation of hangup reasons. AUTHORS
ANT was developed by Roland Stigge <stigge@antcom.de>, based on ideas from IVCALL, Copyright 2002 Lennart Poettering. G.711 handling by Sun Microsystems. Contributions by Joerg Mayer <jmayer@loplof.de>, Lars Volkhardt <Lars.Volkhardt@uni-konstanz.de>, Ivan Schreter <schreter@gmx.net>. Version 0.1.0 27 April 2003 ant-phone(1)
All times are GMT -4. The time now is 05:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy