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 and shell scripting languages 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 07:59 AM
Problem count with wc-l command kunimi UNIX for Dummies Questions & Answers 2 02-27-2008 02:42 AM
command to get count in unzipped folder arunkumar_mca UNIX for Dummies Questions & Answers 4 10-17-2007 02:19 PM
byte count and cut command hemangjani Shell Programming and Scripting 4 04-12-2007 11:32 AM
command to count files in dir balireddy_77 Shell Programming and Scripting 4 11-15-2006 12:56 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread 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 The UNIX and Linux Forums
Sponsored Links
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 04:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66