D
D
Dima2017-07-17 16:29:13
bash
Dima, 2017-07-17 16:29:13

Is it possible to make a virtual file using sed or awk to feed as input as a regular file?

I have a huge csv text file that needs 1 line to be corrected.
Let's assume that it is not possible to copy it. Is it possible to make such script of sed/awk stream editors etc. in such a way that it corrects the line on the fly and submit it as an argument to the program (loader in the database), so that it regards it as a regular csv file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2017-07-17
@v_m_smith

db_import <(awk ... myfile | some_command | ...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question