#!/bin/csh -fxv

# This program demonstartes the importance of the quotes

echo "Pattern to search"
# Take the input from the user
# Shell will pass the input and set val to that input
# Same as set val = "$<"
# BUT different than set val = '$<'
set val = $<
echo "Searching $val in file1"

# Output of the first grep
echo "Output of first grep :" 
grep $val file1

echo "====================="
# Output of the second grep
echo "Output of second grep :"
grep "$val" file1


