#!/bin/bash

echo -n "Please enter the filename :" # send the line with EOF
read filename # Input the filename can also be a keyboard input in this case we will use hello.sh
nlines=$(wc -l < $filename)

echo "There is $nlines lines in the filename $filename"

# There is 2 lines in the filename hello.sh