> what command do I use to substitute all occurences of a certain string (say,
> "NOT NULL") with another arbitrary string, (e.g. "")? I've tried grep and
> tr, but can't figure it out.
if substitution in 'vi' is not possible due to the size of the file try the
stream editor 'sed'
sed /"NOT NULL"/s/"NOT NULL"/""/ filename > filename2
(I am not sure, if ... filename > filename is appropriate)
pgsql-novice by date
|Next:||From: The Hermit Hacker||Date: 2000-09-11 14:53:31|
|Subject: RE: cat infile | translate all occurences of "NOT NULL" to
|Previous:||From: Tom Lane||Date: 2000-09-11 14:44:16|
|Subject: Re: Multiple Selects |