Write a shell script that counts the number of lines and words present in a given file.

echo Enter a file open:

read fn

echo Number of Lines:

wc –l $fn

echo Number of Words:

wc –w $fn

Comments

Popular posts from this blog

CLOOK DISK SCHEDULING

LOOK Disk Scheduling