What kind of database?
If it's an SQL based on then you should just be able to do something like this:
Code:
mysql -uusername -ppassword database <<EOF
update tablename set column="newipadress" where column="oldipadress"
EOF
Replace username with the right one and password with the right one (-u and -p is not to be touched).
Also change newipadress to the new one and oldipadress to the old one. Change column to which columnname the adress is in and tablename to the correct table.
If it's a file you're going to change then there are several ways.
Code:
sed -i "s/oldipadress/newipadress/g" filename
This will change the file "filename"
You can use VIM for this also, open the file and write:
Code:
:%s/oldipadress/newipadress/g
or you can do it like this also
Code:
cat filename | replace "oldipadress" "newipadress" > newfilename
Best regards
Fredrik Eriksson