Sponsored Content
Homework and Emergencies Homework & Coursework Questions Arithmetic Problem with shell script programming. Post 302476531 by Florinel76 on Thursday 2nd of December 2010 01:58:56 AM
Old 12-02-2010
ctsgnb ... thank you very much I will look at that. I already turned in the program and i am glad i was able to understand all this. I mean i am completely new at UNIX but i really love the idea using the command line. it is so much fun than using just icons and windows. The more I will learn the more I will be stopping on this forum for discussions. thanks.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script Programming

The problem is to : develop a shell script which allow patty and mick( two login names) to execute a program (3 Replies)
Discussion started by: abhishek0216
3 Replies

2. UNIX for Dummies Questions & Answers

problem in script involving month arithmetic

advance happy new year to all, i am having a script.The purpose of the scripts is as follows.If the current month is march,june,september or december ,inc_flg should be set to '1' otherwise inc_flg should be set to '2' month= date +"%m" if || || || ; then inc_flg = 1 else ... (6 Replies)
Discussion started by: rajarp
6 Replies

3. Shell Programming and Scripting

Need help : Shell Script Programming

I have to complete my assignment and i need help... These are two simple shell script programs : 1.) Write a shell script to display files in the current directory in the following format : FileName Size Date Protection Owner _______ ____ ___ ________ _____ 2.) Write a... (1 Reply)
Discussion started by: harshthegreat89
1 Replies

4. Shell Programming and Scripting

Shell script programming help

I'm new to this and I need help with writing a script. The following assignment is as follows... Create a shell script named Project3-8 located in a directory supported by the File System Hierarchy Standard. The script needs to perform the following pseudocode in the order shown: -Display... (1 Reply)
Discussion started by: sdpinoy
1 Replies

5. Shell Programming and Scripting

problem in string comparison in shell programming

Hello, was just wondering how to compare strings in unix? I mean as in C there is a function strcmp() in string.h, is there any function in unix for that? I tried using if and all such variations but didn't succeed. Any help would be appreciated. Thanks in advance :) (9 Replies)
Discussion started by: salman4u
9 Replies

6. Shell Programming and Scripting

Arithmetic calculation on real numbers in Bourne Shell Script

I am begining to learn bourne shell and as a practice I have written a script which when given the purchase price and percentage of discount calculates the savings. I somehow cannot figure out why my script fails to do arthimatic calculation on real numbers. Could anyone look at the script... (5 Replies)
Discussion started by: Tirmazi
5 Replies

7. Shell Programming and Scripting

Arithmetic Problem with shell script programming.

Hello everybody, I decided to take a Unix Introduction class and have never had experience with programming. Everything was fine until recently when the Prof. started shell scripting and he wants us to make a small script to add unlimited numbers from arguments and from standard input. I... (1 Reply)
Discussion started by: Florinel76
1 Replies

8. Shell Programming and Scripting

how to do decimal arithmetic in shell script

hi, I have a file with decimal/non-decimal values $ cat b22 373 164 92 62 20 131 94 12 129 111 95 154 37 15 447 25 7.4 135 77 122 32 92 70 57 37 42 72 17 13 97 40 41 53 22 80 71 29 87 23 31 273 6.2 12K 43 44 45 22 11 7.7 13 18 173 36 20 18 13 56 67 104 53 5.4 241 19 13 3.8 38 14 31 329 16 155... (8 Replies)
Discussion started by: sam05121988
8 Replies

9. Shell Programming and Scripting

Help with Arithmetic calculations in Shell script

Hi, I need a help with arithmetic calculations in my script. I have two variables: a=17; b=1712 I want to perform ($a/$b)*100 with two decimals in the result. I tried with following: res=$((100*a/b)) res=`echo "scale=2; $a / $b" | bc` But I am not getting the decimal values.... (4 Replies)
Discussion started by: karumudi7
4 Replies

10. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
Mojolicious::Guides(3pm)				User Contributed Perl Documentation				  Mojolicious::Guides(3pm)

NAME
Mojolicious::Guides - Mojolicious guide to the galaxy DON'T PANIC! We are constantly working on new documentation, follow us on Twitter <http://twitter.com/kraih>, GitHub <http://github.com/kraih/mojo> or join the official IRC channel "#mojo" on "irc.perl.org" to get all the latest updates. LEARNING PERL
If you are new to Perl, we recommend Learn Perl in 2 hours 30 minutes <http://qntm.org/files/perl/perl.html> for a quick introduction, or the Modern Perl book <http://modernperlbooks.com/books/modern_perl/>, freely available in many formats. Both are excellent introductions to the language. For more books and documentation, check out learn.perl.org <http://learn.perl.org/>. TUTORIAL
Mojolicious::Lite A really fast and fun way to get started developing web applications with Mojolicious is the Mojolicious::Lite tutorial. Almost everything you learn there can also be applied to normal Mojolicious applications and is considered a prerequisite for the guides. You should definitely take a look! GUIDES
Mojolicious::Guides::Growing Starting a Mojolicious::Lite prototype from scratch and growing it into a well structured Mojolicious application. Mojolicious::Guides::Routing Simple and fun introduction to the Mojolicious router. Mojolicious::Guides::Rendering Generating content with the Mojolicious renderer. Mojolicious::Guides::Cookbook Cooking with Mojolicious, recipes for every taste. Mojolicious::Guides::FAQ Frequently asked questions with the right answers. Mojolicious::Guides::CodingGuidelines Coding guidelines and mission statement. A must read for developers and contributors! HIGHLIGHTS
Mojolicious and Mojolicious::Lite are the sum of many parts, small building blocks that can be used independently, these are the most prominent ones. Mojo::UserAgent Full featured non-blocking I/O HTTP 1.1 and WebSocket user agent. Mojo::DOM Very fun and minimalistic HTML5/XML DOM parser with CSS3 selector support. Mojo::JSON Minimalistic JSON implementation that just works. Mojo::Server::Daemon Highly portable non-blocking I/O HTTP 1.1 and WebSocket server with self-restart support through Mojo::Server::Morbo, perfect for development and testing. Mojo::Server::Hypnotoad Full featured UNIX optimized preforking non-blocking I/O HTTP 1.1 and WebSocket server with support for zero downtime software upgrades (hot deployment). Mojo::Server::CGI, Mojo::Server::PSGI Transparent CGI and PSGI support out of the box. Mojo::Template Very Perl-ish and minimalistic template system. Mojo::ByteStream Countless portable and very convenient bytestream manipulation methods. Mojolicious::Commands Pluggable command line system and the backbone of the mojo script. Test::Mojo Test driven development toolkit for web applications. ojo Fun oneliners using everything above. MORE
A lot more documentation and examples by many different authors can be found in the Mojolicious wiki at <http://github.com/kraih/mojo/wiki>. perl v5.14.2 2012-09-05 Mojolicious::Guides(3pm)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy