You don't need to involve grep if you're working in the Korn shell.<br>
<br>
Try this:<br>
<br>
if [ "$file" != "${file%.gz}" ]<br>
then<br>
print "\"$file\" is gzipped"<br>
else<br>
print "\"$file\" is not gzipped"<br>
fi<br>...
If this is something you will be doing often, I agree that it would be better to connect the two via Ethernet and use FTP to get the files back and forth.<br>
<br>
If this is a one-shot deal, then connecting the PC to the AIX box as a hardwired terminal is your easiest bet. All you need is the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.