![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| check if remote file exists | hcclnoodles | Shell Programming and Scripting | 2 | 08-27-2008 06:53 PM |
| How to check if a direcorty exists? | SunnyK | Shell Programming and Scripting | 2 | 11-08-2007 10:47 AM |
| How can I check if directory exists in a makefile | zivsegal | UNIX for Dummies Questions & Answers | 2 | 09-10-2007 04:12 AM |
| check if directory exists | jerardfjay | Shell Programming and Scripting | 2 | 06-13-2005 03:26 PM |
| perl ftp check file exists | methos | Shell Programming and Scripting | 2 | 06-18-2003 09:21 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Thanks for the quick reply, Porter, but it didn't work. First I ran it as is and got nothing, then I modified it as such: Code:
for d in AWL.????????.IP
do
echo $d
if test -d $d
then
echo $d exists
fi
done
And what printed to the screen was Code:
AWL.????????.IP This is a ksh on a windows server using MKS Toolkit. |
|
||||
|
If you get back "AWP.????????.IP" then nothing matched the expression.
The way general expressions work in the shell is if there are file matches those that match are returned, else the expression. Can you do "ls -l" for us to see what you are seeing? It might be a case sensitivity type thing, note, windows file systems are case-insensitive, UNIX ones are normally case-sensitive. You might need to try "awp.????????.ip" or some variation. |
|
|||||
|
thanks so much, it works now. It even worked before only I had made the mistake of looking for AWL.*.IP which is the standard for all of my other customers, but for this customer the directories are called TL.*.IP, so your first reply as to how to fix this succeeded.
Sorry about the extra reply I had to draw from you. Thanks again! Phil Plasma |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|