#!/bin/bash nlines=$(wc -l < $1) # Enter in hello.sh $1 is one argument echo "There is $nlines lines in the filename $1" # There is 2 lines in the filename hello.sh