Data file : data.f
48 Dec 3BC1997 LPSX 68.00 LVX2A 138
483 Sept 5AP1996 USP 65.00 LVX2C 189
47 Oct 3ZL1998 LPSX 43.00 KVM9D 512
219 dec 2CC1999 CAD 23.00 PLV2C 68
484 nov 7PL1996 CAD 49.00 PLV2C 234
483 may 5PA1998 USP 37.00 KWM9D 644
216 sept 3ZL1998 USP 86.00 KVM9E 234
Csh Script : grep.csh
#!/bin/csh -f
grep "Dec" *.f
echo
grep -c "48" data.f
echo
grep "48" data.f
echo
grep -n "48" data.f
echo
grep -v "48" data.f
echo
grep "48/>" data.f
echo
grep -i "sept" data.f
echo
grep "48[34]" data.f
echo
grep "[Ss]ept" data.f
echo
grep "[Ss]ept" data.f | grep 483
echo
grep "K...D" data.f
echo
grep '[A-Z][A-Z]..C' data.f
echo
grep "[0-9][0-5][0-6]" data.f
echo
grep "4/{2/}" data.f
echo
grep "9/{3/}" data.f
echo
grep -E "219|216" data.f
echo
ls -l | grep "^d"
echo
ls -l | grep "^[^d]"
echo