Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need urgent help

Status
Not open for further replies.

msen

IS-IT--Management
Apr 24, 2001
36
US
!/usr/bin/ksh

set -v
set -x

LOG=/export/home/senm/logs/cleanup.log.`date +%d%m%y.%H%M%S`
INFILE=/export/home/senm/rollover.dat
GREPFILE=/tmp/grep.log

##READFILE=`(read $GREPFILE)'
##echo $READFILE
while read $GREPFILE
do
echo $GREPFILE
done

 
Wrong forum..try unix scripting.
Buy a good book on shell programming is my advice.

A working script might look like:
Code:
while read line
do
echo $line
done < $GREPFILE

 
Also, be more specific on the subject line.

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top