hi DW Shell Script Kings :)
i have some problem in a step of my assignment.
thats i can read the file with this :
#Read all text from file
echo -n "Enter file name: "
read fileName
while read inputline
do
echo $inputline
done < $fileName
how i can find the total lines which is in this file ??
i mean like this : if the file has student names , it must output like this :
Total students : x
Thanks for helping..