![]() |
|
|
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 |
| df, grep, wild card | itik | AIX | 2 | 01-24-2008 10:41 AM |
| Wild card in find perm | braindrain | Shell Programming and Scripting | 1 | 04-12-2007 07:24 PM |
| How do I pass a wild card as an argument | eja | UNIX for Dummies Questions & Answers | 2 | 03-28-2007 03:03 PM |
| ls and wild card - Should be simple! | GNMIKE | UNIX for Dummies Questions & Answers | 2 | 10-13-2005 08:41 AM |
| using if with wild card patterns | rooh | UNIX for Dummies Questions & Answers | 1 | 05-18-2002 08:15 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Find Existence of File with wild card using Csh
Hi All,
I would like to find out the existence of files with wild card using CSH. I have used the below code but does not seem to work. Can any expert give me some advice ? Code:
set nonomatch
set pattern = "_xxx"
set filetype = ( *$pattern* )
if ( -e $filetype) then
echo "FILES with $pattern EXISTS"
else
echo "FILES with $pattern DOES NOT EXISTS"
endif
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|