[Dart-dev] [5541] DART/branches/development/models/wrf/shell_scripts/advance_model.csh : in grep, using regular expressions, dot matches a single char.

nancy at ucar.edu nancy at ucar.edu
Fri Jan 27 14:44:20 MST 2012


Revision: 5541
Author:   nancy
Date:     2012-01-27 14:44:20 -0700 (Fri, 27 Jan 2012)
Log Message:
-----------
in grep, using regular expressions, dot matches a single char.
question mark matches a single char in the shell on a command line.

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

-------------- next part --------------
Modified: DART/branches/development/models/wrf/shell_scripts/advance_model.csh
===================================================================
--- DART/branches/development/models/wrf/shell_scripts/advance_model.csh	2012-01-27 21:42:52 UTC (rev 5540)
+++ DART/branches/development/models/wrf/shell_scripts/advance_model.csh	2012-01-27 21:44:20 UTC (rev 5541)
@@ -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