1

Solaris script using awk giving errors - please advise

view story
linux-howto

http://www.unix.com – I'm using solaris 10 Scenario as follows I have a logfile with 2 columns: column 1 = source directory + filename column 2 = destination directory + filename Using cron, my script polls for new files and adds them to the logfile ($ELOG) as described above. Using sed, the distination directory is created by changing 1 one the sub-directory locations I'm trying to use awk to parse the file: - encrypt the file - copies the file to the destination folder ... ... Code: cat $ELOG | while read line; do   echo $line | awk '{print "ENCRYPT "$1" " print "<passw (HowTos)