answersLogoWhite

0


Best Answer

#!/bin/sh

echo "6.0221415 * 10²³"

#!/bin/sh

echo "6.0221415 * 10 ^ 23"

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran

Add your answer:

Earn +20 pts
Q: What is a shell script to print Avogadro's number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command in a script would print on the screen the first variable past to that script?

Well the question is not particularly specific. I assume that we are talking about shell and in this example I would refer to "bash" shell. #!/bin/bash echo $1 this simple script will print first parameter passed to it.


How do you print a line on screen shell script?

That would depend on what shell you're using. Most seem to have a command similar to "echo x" which will print x to the terminal.


How do you display the values in shell script?

Use the builtin 'echo' or 'print' command followed by the shell variable name, which will substitute the value when printed/displayed.


Write a shell script to count the number of times is appears in a given text file?

You don't need a shell script to do this; use the 'grep' command with the '-c' option to count the number of occurrences of some pattern.


What is the command to execute a shell script?

If the shell script is readable and executable then to execute it just type the name of the shell script file. Otherwise, you can explicity call a shell interpreter to run the file as a shell script, i.e., ksh myfile


Write a shell script to Print a table of any number?

Improve $vi multable.sh echo "enter the value of n:" read n i=1 for((i=1;i<=10;i++)) do echo " $n * $i = `expr $n \* $i`" done


Can you execute a shell script if you do not have read permission for the file containing the script?

No, the shell needs both execute and read permissions to run the script.


Write a shell script that counts a number of unique word contained in the alphabetical order line by line?

use python, shell is stupid


Shell script to reverse rows and columns of a matrix?

awk 'BEGIN {FS=OFS=":"} {temp=$1; $1=$2; $2=temp} {print}' File1.txt


Write a shell script to show that user is logged in or not?

You don't need a shell script for that; use either 'whoami' or 'id'


Parse log files-shell script?

There are following shell scripts available at the below mentioned url -1. Shell Script for Log4j Log Analysis and exception reporting2. Log Monitoring Shell Script - email upon errorsHope that's what you are looking for.


Write a program in shell script to display odd number from 0 to 100?

seq 1 2 99