10-29-2006
Write a shell program to find the sum of alternate digits in a given 5-digit number
Hi Can any one please post the answer for the above program..................
Last edited by banta; 10-29-2006 at 05:28 PM..
Reason: Wrong question
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
pls give me the solution for this i need it for my exam pls pls pls
Shell script to find the sum of first n Fibonacci numbers (1 Reply)
Discussion started by: Kshitija
1 Replies
2. Programming
I have to write a c program which takes a 3 digit number n and calculates the value of (2^n)+1 and then determines the number is prime or not.
I have tried to first calculate the value of 2^n and then adding one to it and then apply the logic of prime number.
but the ultimate problem is that... (7 Replies)
Discussion started by: agrawal.prachi
7 Replies
3. Shell Programming and Scripting
Hi,
I just need to check whether number of digits in a phone number is 10 or not. If I am not wrong regex will be: {9}
I have to use this inside nawk as this is a small portion of a big program.
nawk '
BEGIN { RS="";FS=";";
regex="{9}";
}
{
for (i=1;i<=NF;i++) {
if... (6 Replies)
Discussion started by: shekhar2010us
6 Replies
4. Shell Programming and Scripting
Hello all! I've looked all over the internet and this site and have come up a loss with an easy way to make a bash script to do what I want to do. I have a file with a naming convention as follows:
2012-01-18 string of words here 123.jpg
2012-01-18 string of words here 1234.jpg
2012-01-18... (2 Replies)
Discussion started by: Buzzman25
2 Replies
5. Shell Programming and Scripting
Hello..
I want to take back up from server to local machine and i dont know how to do it using cron and sftp . I can do it by manually typing password in the terminal and taking the back up. How to create a 'backup.sh' file for doing all the back up process and shut down automatically after... (1 Reply)
Discussion started by: deepoos
1 Replies
6. Shell Programming and Scripting
Hi,
Here is my question:
I want a shell script which I name as 'del', and can be used as del(string).
when run del(string), it will delete several directories at different locations in my system,like:
rm -fr /lustre/fs/scratch/user/$string
rm -fr /home/user/$string
rm -fr... (4 Replies)
Discussion started by: 1988PF
4 Replies
7. Shell Programming and Scripting
HI,
Can you tell me how to find the number of digits in a word.
$cat data.txt
+123456ad
87645768
Output should be
6
8 (5 Replies)
Discussion started by: ashwin3086
5 Replies
8. Shell Programming and Scripting
I have a simple text file having payment amount value on each line. At the end of day 'n' number of payments created difference in amount that I need to match from this file.
I have information about how many payments created difference and difference amount. Please help me to build shell... (3 Replies)
Discussion started by: swats007
3 Replies
9. Shell Programming and Scripting
In the game of “Unique”, multiple players privately choose an integer. They then reveal
their choice. The winner is the player who chose the smallest unique number. The
game is considered a draw if no unique integer was chosen.
You would write a program that simulate such a game according to the... (1 Reply)
Discussion started by: dantesma
1 Replies
10. UNIX for Beginners Questions & Answers
I all
I am tryng to find a way to sort a list of number in a file by the value of last two digit.
i have a list like this
313202320388
333202171199
373202164587
393202143736
323202132208
353201918107
343201887399
363201810249
333201805043
353201791691 (7 Replies)
Discussion started by: rattoeur
7 Replies
COALA(1) General Commands Manual COALA(1)
NAME
coala - a versatile compiler from action languages to answer set programs
SYNOPSIS
coala [options]file[number]
DESCRIPTION
This manual page documents briefly the coala command.
coala is a versatile compiler from action languages to answer set programs. It supports different encodings, variables and LTL style
queries. It translates an action language into a logic program under the answer set semantics. After being grounded by lparse or gringo,
the logic program can be solved by an answer set solver such as clasp. At the moment coala is able to translate the action language AL, B,
C, a subset of C+ and the action language CTAID. The type of input language can be specified with a command line option.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below. For a complete description, see the potassco-guide.
-h, --help
Show summary of options.
--version
Show version of program.
SEE ALSO
clasp(1), gringo(1).
AUTHOR
coala was written by Torsten Grote <Torsten.Grote@uni-potsdam.de>
This manual page was written by Thomas Krennwallner <tkren@kr.tuwien.ac.at>, for the Debian project (and may be used by others).
March 4, 2010 COALA(1)