The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Record count problem using sed command ayanbiswas UNIX for Dummies Questions & Answers 2 07-02-2008 04:59 AM
Problem count with wc-l command kunimi UNIX for Dummies Questions & Answers 2 02-26-2008 11:42 PM
command to get count in unzipped folder arunkumar_mca UNIX for Dummies Questions & Answers 4 10-17-2007 11:19 AM
byte count and cut command hemangjani Shell Programming and Scripting 4 04-12-2007 08:32 AM
command to count files in dir balireddy_77 Shell Programming and Scripting 4 11-14-2006 09:56 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2008
Registered User
 

Join Date: Mar 2006
Posts: 10
ksch script to utilize UNIDATA count command.

I am working on a ksh script to pattern match on a file and then initialize a unidata session to allow me to see if the file is cleared or not. The problem i am having is that the code works but it executes a new unidata session multiple times.

I would build a paragraph but new WWW files are being added.

What i have so far.

cd $XMAIN/SYSTEM
x=$(du -sm WWW* | awk '{print $2}');export x
for var in $x
do
if [[ $var != "0" ]] then
# echo $var

cd $XMAIN
$UDTBIN/udt << %END%


UT.INIT EX
COUNT $var
QUIT
%END%
fi
done
Reply With Quote
Google UNIX.COM
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0