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!

Need to write a find and replace script

Status
Not open for further replies.

1971240z

Technical User
Jul 24, 2002
20
US
I need to fine a string of letters and numbers like HB33440011 in a file and replace it with a new number like HC446688900. Does any one know how to right a script that would find and replace the letters/numbers?

Regards,
 
sed -e 's/HB33440011/HC446688900/g' orig_file.txt > new_file.txt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top