B
B
brar2016-06-03 02:11:10
vim
brar, 2016-06-03 02:11:10

How to copy only lines by mask to a new file?

There is a csv file. 4000 lines. 20 columns. One of the columns has both numeric 11-digit format strings and text strings.
How can I use vim or just bash to find and copy lines with numeric content into a new file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xotkot, 2016-06-03
@brar

You can also use awk:
where N= 2 is the number of the desired column
-F";" - in quotation marks specify the column separator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question