#!/bin/bashlinecount="$(wc -l $1|cut -d' ' -f1 )"echo "$1 has $linecount lines."
bash linecount.sh /etc/fstab/etc/fstab has 15 lines.