answersLogoWhite

0

Shell program to find number of seconds in a day?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

echo 'print 24*60*60,"\n"' | bc
or
echo '86400'

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Shell program to find number of seconds in a day?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a Shell program to find the smallest number from a set of numbers?

k


Shell program to find the smallest digit of a given number?

syntax error


Write a Shell program to find the sum of cube of individual digits of a number?

no thanks


Shell program to find the sum of cube of individual digits of a number?

Shell problems are programs that can be run to find out information about numbers. The problem can help find an even or odd number, or what the sum of a cube is.


Shell program to find the sum of square of individual digits of a number?

There are many shell programs that will find the sum of the square of individual digits of a number. A small example is: SD=3n=2, sum=2, and SD=2.


Shell program to generate prime number between 1 and 50?

There are several shell programs available for download on the Internet that will generate prime numbers. The best way to find a prime number is through calculation, however.


Find the number of seconds in a solar year?

31,536,000 seconds


Distinguish between internal and extarnal commands with examples for unix?

Internal commands are executed by the shell and do not exist as a separate binary program. You can find out which of these there are by looking at the 'man' entry for the shell you are using. External commands can be found in various directories, such as /bin, /usr/bin, etc.


How many minutes is 3030 seconds?

There are 50.5 minutes in 3030 seconds. To find how many minutes are in a given number of seconds, divide the given number by the amount of seconds in one minute.


Write a Shell program to find the area and circumference of a circle?

echo "Enter the Number" read n r=`expr $n % 2` if [ $r -eq 0 ] then echo "$n is Even number" else echo "$n is Odd number" fi


Program to find the greatest number?

The greatest number is infinity.


Write a shell program to find given no is even or odd?

The pseudo code would be as follows (you figure out the syntax) 1) Prompt the user to enter a number 2) If entered number is alpha, quit program after displaying message that the user ended the program. 3) Otherwise, find Modulo 2 of the entered number. This is a fancy way of saying "find the remainder when the number is divided by 2) 4) If Modulo 2 is zero, the number is even, otherwise odd 5) Display message showing if the entered number was Even or Odd 6) Branch back to step 1