[Dart-dev] [5591] DART/trunk/models/wrf/shell_scripts/advance_model.csh: in a grep pattern, dot matches a single char.

nancy at ucar.edu nancy at ucar.edu
Tue Mar 6 16:55:02 MST 2012


Revision: 5591
Author:   nancy
Date:     2012-03-06 16:55:02 -0700 (Tue, 06 Mar 2012)
Log Message:
-----------
in a grep pattern, dot matches a single char.  question mark
matches a single char on the command line.
(keep in sync with kodiak branch which has had this fix for a while)

Modified Paths:
--------------
    DART/trunk/models/wrf/shell_scripts/advance_model.csh

-------------- next part --------------
Modified: DART/trunk/models/wrf/shell_scripts/advance_model.csh
===================================================================
--- DART/trunk/models/wrf/shell_scripts/advance_model.csh	2012-03-06 21:52:15 UTC (rev 5590)
+++ DART/trunk/models/wrf/shell_scripts/advance_model.csh	2012-03-06 23:55:02 UTC (rev 5591)
@@ -185,7 +185,7 @@
    if ( ( -d $temp_dir ) & ( $individual_members == "true" ) ) then
 
       cd $temp_dir
-      set rmlist = ( `ls | grep -v wrfinput_d0?` )
+      set rmlist = ( `ls | grep -v wrfinput_d0.` )
       ${REMOVE} $rmlist
 
    else


More information about the Dart-dev mailing list