[ic] Re: Removing all instances of "NOT NULL" from an entire directory of files
Stefan Hornburg
racke@linuxia.de
12 Sep 2000 08:22:46 +0200
"Michael R. Jinks" <mjinks@uchicago.edu> writes:
> Try this:
>
> find /path/to/files -type f -exec perl -pi -e "s/NOT NULL//g" {} \;
For some files:
perl -pi -e 's/NOT NULL//g' `find /path/to/files -type f`
For much files:
find /path/to/files -type f | xargs perl -pi -e 's/NOT NULL//g'
Ciao
Racke
--
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <---