grep

How to use grep with fread in Rstudio?

I have a large csv file that I want to import into Rstudio. Because it is so big (~29GB), I would like to only import specific rows at a time, rather than import the whole thing and then filter. I have been trying to use grep in the cmd = …

parsing key value in shell script

I have a file and want to look for value from that file using shell script.
So I’m trying to grep value using the below code.
VAR=($grep -Po "(?source-no": ")(\d+)" file)

but it’s giving an error

grep missing )

Data …

parsing key value in shell script

I have a file and want to look for value from that file using shell script.
So I’m trying to grep value using the below code.
VAR=($grep -Po "(?source-no": ")(\d+)" file)

but it’s giving an error

grep missing )

Data …