One could go read the Southern Daily Echo on their website at Daily Echo. It is owned by one of the biggest publishing companies in the United Kingdom.
The Flintsones
One can purchase and read the Daily Courier if they live in Oregon. If they do not live locally the can view the Daily Courier on the internet, the Daily Courier.
One can read the Liverpool Echo online by browsing to the Official Liverpool Echo site, and proceeding to read it. On the Liverpool Echo site there's news on happenings in Liverpool, as well as information on what's on, sport, and "Buy, Sell and Tell."
input="yes" while [[ $input = "yes" ]] do echo "------------" echo "Calculator" echo "------------" PS3="Press 1 for Addition, 2 for subtraction, 3 for multiplication and 4 for division: " select math in Addition Subtraction Multiplication Division do case "$math" in Addition) echo "Enter first no:" read num1 echo "Enter second no:" read num2 result=<code>expr $num1 + $num2</code> echo Answer: $result break ;; Subtraction) echo "Enter first no:" read num1 echo "Enter second no:" read num2 result=<code>expr $num1 - $num2</code> echo Answer: $result break ;; Multiplication) echo "Enter first no:" read num1 echo "Enter second no:" read num2 result=<code>expr $num1 \* $num2</code> echo Answer: $result break ;; Division) echo "Enter first no:" read num1 echo "Enter second no:" read num2 result=$(expr "scale=2; $num1/$num2" | bc) echo Answer = $result break ;; *) echo Choose 1 to 4 only!!!! break ;; esac done echo "Do you want to calculate again(yes/no):" read input echo "Thank you for using this program" done
echo "Enter a value: " read a echo "Enter a value: " read b echo "Enter a value: " read c x1= echo "scale=7; (-$b+sqrt($b^2-4*$a*$c))/(2*$a)"|bc' x2= echo "scale=7; (-$b-sqrt($b^2-4*$a*$c))/(2*$a)"|bc' echo $x1 echo $x2
$vi sum.sh echo "enter the 1st no." read num1 echo "enter the 2nd no." read num2 sum= 'expr $num1 + $num2' echo "sum of the numbers is $sum"
The Sunderland Echo is available online on its website. It can also be read through online newspaper aggregators such as Press Display and The Paperboy.
do( echo"welcome to calculator press x to exit" echo"enter 1st no:" read a echo"enter operator(+,-,*,/,%):" read o echo "enter 2nd no:" read b if["$o"="+"]; then ans=($a+$b); if["$o"="-"]; then ans=($a-$b); if["$o"="*"]; then ans=($a*$b); if["$o"="/"]; then ans=($a/$b); if["$o"="%"]; then ans=($a%$b); )while[$!='x'] echo "answer is:$ans"; done
$vi sum.sh echo "enter the 1st no." read num1 echo "enter the 2nd no." read num2 sum= 'expr $num1 + $num2' echo "sum of the numbers is $sum"
#!/bin/Bash echo "Enter the two numbers to be Multiplied:" read n1 read n2 answer=`expr $n1 \* $n2` echo $answer
perfect code: create () { echo "Enter the filename which you want to create" read db touch $db echo "File created" } insert() { if [ -z $db ];then echo "Database doesnt exist. Create a new database." else echo "Enter the number of records to be added." read no while [ $no -gt 0 ] do echo "Enter roll no: " read rno srno=`grep "^$rno" "$db"` if [ -z $srno ] then echo "Enter Name: " read name echo "Subject 1: " read sub1 echo "Subject 2: " read sub2 echo "Subject 3: " read sub3 avg=$((($sub1+$sub2+$sub3)/3)) echo "Average : $avg" record=$rno":"$name":"$sub1":"$sub2":"$sub3":"$avg echo $record >> "$db" no=$(($no-1)) else echo "Record already exists." fi done fi } search() { echo " Enter roll no: " read rno record=`grep "^$rno" "$db"` if [ $? -ne 0 ]; then echo "Record doesnt exist. " else echo "Record found" echo $record fi } modify() { echo " Enter roll no to modify: " read rno grep "^$rno" $db > temp1.txt grep -v "^$rno" $db > temp2.txt mv temp2.txt $db if [ $? -ne 0 ]; then echo "Record doesnt exist. " else name=`cut -d ";" -f2 "temp1.txt"` sub1=`cut -d ";" -f3 "temp1.txt"` sub2=`cut -d ";" -f4 "temp1.txt"` sub3=`cut -d ";" -f5 "temp1.txt"` echo "Enter the value you want to modify" MENU=" Values 1)Name 2)Subject 1 marks 3)Subject 2 marks 4)Subject 3 marks " echo "$MENU" echo "Enter your choice" read n1 case $n1 in 1) echo "Enter the new name" read name ;; 2) echo "Enter the new marks for subject 1" read sub1 ;; 3) echo "Enter the new marks for subject 2" read sub2 ;; 4) echo "Enter the new marks for subject 3" read sub3 ;; *) echo "Enter a vaid choice" ;; esac avg=$((($sub1+$sub2+$sub3)/3)) record=$rno";"$name";"$sub1";"$sub2";"$sub3";"$avg echo $record >> "$db" fi } delete() { echo " Enter roll no: " read rno record=`grep "^$rno" "$db"` if [ $? -ne 0 ]; then echo "Record doesnt exist. " else echo "Record found" echo $record record=`grep -v "^$rno" "$db" > tmp.txt` mv tmp.txt $db echo "Record deleted." fi } display() { echo " Complete database..." cat $db } MENU1="***********Menu*********** 1)Create 2)Insert 3)Search 4)Modify 5)Delete 6)Display 7)Exit " while true do echo $MENU1 echo "Enter the choice: " read n case $n in 1) create ;; 2)insert ;; 3) search ;; 4) modify ;; 5) delete ;; 6) display ;; 7) exit ;; esac done #written by:Fabianski Benjamin
In "bash" shell it can be achieved with command "read" #!/bin/bash echo "Hi There, what is your name?" read name echo $name