batch file
Claus S. Jensen
claus at iesd.auc.dk
Mon Dec 3 08:18:10 AEST 1990
I am trying to make a batch file, that looks through
a number of textfiles for a string. I've made up something
like this, but it doesn't work. Can anybody tell me why
this is, and perhaps if there is another way to do it.
#!/bin/tcsh
foreach file ($1)
echo $file
cat $file | grep $2
end
Claus S.Jensen
--
########################################################################
# Claus S.Jensen , claus at iesd.auc.dk #
# University of Aalborg, Denmark #
########################################################################
More information about the Comp.unix.questions
mailing list