![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Checking for existence of a flat file in UNIX ! | Ariean | Shell Programming and Scripting | 4 | 04-25-2008 02:58 PM |
| checking for existence of table in oracle | kjs | SUN Solaris | 0 | 10-19-2007 03:21 AM |
| Checking the existence of a file.. | igandu | Shell Programming and Scripting | 7 | 06-13-2007 03:47 AM |
| File existence problem | anormal | UNIX for Dummies Questions & Answers | 2 | 05-15-2006 12:54 PM |
| File existence | mpang_ | Shell Programming and Scripting | 2 | 03-27-2006 11:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
checking file existence
Hi,
My requirement was to check the existence of a file having a specified pattern.The way i tried to achieve this was if [ -f ilvs_trace*.`date +'%m%d'` ]; then echo "File found" fi an example file having this pattern was 'ilvs_trace01.0124'. it will vary from 01-22,thats why i tried the above one using wildcard. Would anyone can provide me a solution for this in the way i expects. Your help is appreciated. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|