Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
#!/bin/bash
#This is a special text file
clear
read the_line
There
are 20 students in the class.
[TAB][SPACE] Nearly
half of them are enrolled in FoS. The rest are in
Faculty-Of-ES.
The output from the script should look like
There
[TAB][SPACE] Nearly
Faculty-Of-ES.
while read the_line; do
((i++%2)) && { echo "$the_line";}
done < "$1"
exit 0
# Hello World Program in Bash Shell
#!/bin/bash
echo "informe o primeiro número"
read n1
echo "informe o segundo número"
read n2
echo "informe o terceiro número"
read n3
echo "qual o decremento ?"
read dec