Removing all instances of "NOT NULL" from an entire directory of files

Поиск
Список
Период
Сортировка
От Dan Browning
Тема Removing all instances of "NOT NULL" from an entire directory of files
Дата
Msg-id 002201c01c48$e2af3490$1500000a@danb
обсуждение исходный текст
Ответы Re: Removing all instances of "NOT NULL" from an entire directory of files  (Jesus Aneiros <aneiros@jagua.cfg.sld.cu>)
Re: Removing all instances of "NOT NULL" from an entire directory of files  (ERIC Lawson - x52010 <eric@bioeng.washington.edu>)
Список pgsql-novice
OK, I've got a command (or two) that will remove all NOT NULL strings from a
given file.

    cat filename | perl -pi -e "s/NOT NULL//g" > filename

But how do I run that command on every file in a directory, successively?

(In case you're wondering, I'm working on the pgsql/ directory of .sql files
that interchange uses to build the database tables).

Thanks,

Dan Browning
Network & Database Administrator
Cyclone Computer Systems


В списке pgsql-novice по дате отправления:

Предыдущее
От: "Christopher Smith"
Дата:
Сообщение: inserting a file into a database.
Следующее
От: "Michael R. Jinks"
Дата:
Сообщение: Re: Removing all instances of "NOT NULL" from an entire directory of files