1

Please help on "if" statement.

view story
linux-howto

http://www.unix.com – Hi, I want to filter the logs per domain and place it in a single text file, but I'm having a problem with "if" statement because current archiving setup where logs are compressed into two different format ( gzip and compress). Script: domainlist="4prd 5prd 6prd 7prd 8prd" for domain in $domainlist do if [ ? ] ; then gzgrep "$domain" $dir_arch/logs >> $dir_arch/logs/$domain_$myhost.txt << for zip files (e.q log.gz) gzip -f $dir_arch/logs/$domain_$myhost.txt else zcat $dir_arch/l (HowTos)