Oct 20, 2003 #1 SOL9MAN Technical User Mar 11, 2003 12 GB Hi If I have the following variable set as below, How would I use SED to replace the regular expression/tag ([0-9]\{7}\) with a number ie 1000 INPUT_DATAFILE="NW_S\([0-9]\{7}\)\.TXT regards
Hi If I have the following variable set as below, How would I use SED to replace the regular expression/tag ([0-9]\{7}\) with a number ie 1000 INPUT_DATAFILE="NW_S\([0-9]\{7}\)\.TXT regards
Oct 20, 2003 #2 PHV MIS Nov 8, 2002 53,708 FR Try this: Code: sed 's!\\(\[0-9\]\\{7}\\)!1000!' Hope This Help PH. Upvote 0 Downvote