Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SED Question

Status
Not open for further replies.

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
 
Try this:
Code:
sed 's!\\(\[0-9\]\\{7}\\)!1000!'

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top